Fixed issue with promotions count checking in StatusList, SidebarPanelGroup
• Fixed: - issue with promotions count checking in StatusList, SidebarPanelGroup
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import {
|
||||
List as ImmutableList,
|
||||
fromJS,
|
||||
}from 'immutable'
|
||||
import {
|
||||
PROMOTIONS_FETCH_REQUEST,
|
||||
PROMOTIONS_FETCH_SUCCESS,
|
||||
PROMOTIONS_FETCH_FAIL,
|
||||
} from '../actions/promotions'
|
||||
|
||||
const initialState = ImmutableList()
|
||||
const initialState = []
|
||||
|
||||
export default function promotions(state = initialState, action) {
|
||||
switch (action.type) {
|
||||
@@ -16,7 +12,7 @@ export default function promotions(state = initialState, action) {
|
||||
case PROMOTIONS_FETCH_FAIL:
|
||||
return initialState
|
||||
case PROMOTIONS_FETCH_SUCCESS:
|
||||
return fromJS(action.items)
|
||||
return action.items
|
||||
default:
|
||||
return state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user