webpack/scenes/ContentViews/ContentViewSelectors.js in katello-4.2.2 vs webpack/scenes/ContentViews/ContentViewSelectors.js in katello-4.3.0.rc1

- old
+ new

@@ -4,13 +4,12 @@ selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import CONTENT_VIEWS_KEY from './ContentViewsConstants'; -export const selectContentViews = state => - selectAPIResponse(state, CONTENT_VIEWS_KEY) || {}; +export const selectContentViews = (state, index = '') => selectAPIResponse(state, CONTENT_VIEWS_KEY + index) || {}; -export const selectContentViewStatus = state => - selectAPIStatus(state, CONTENT_VIEWS_KEY) || STATUS.PENDING; +export const selectContentViewStatus = (state, index = '') => + selectAPIStatus(state, CONTENT_VIEWS_KEY + index) || STATUS.PENDING; -export const selectContentViewError = state => - selectAPIError(state, CONTENT_VIEWS_KEY); +export const selectContentViewError = (state, index = '') => + selectAPIError(state, CONTENT_VIEWS_KEY + index);