[SearchPanel] TVirtualGridList 사용 시 UI 깨던 현상 수정,
[SearchReducer] actionTypes, searchActions 에 initPerformed 추가
This commit is contained in:
@@ -4,6 +4,7 @@ const initialState = {
|
||||
searchDatas: {},
|
||||
totalCount: {},
|
||||
searchPerformed: false,
|
||||
initPerformed: false,
|
||||
};
|
||||
|
||||
export const searchReducer = (state = initialState, action) => {
|
||||
@@ -29,6 +30,7 @@ export const searchReducer = (state = initialState, action) => {
|
||||
searchDatas: updatedSearchDatas,
|
||||
totalCount: updatedTotalCount,
|
||||
searchPerformed: true,
|
||||
initPerformed: !action.append,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +39,12 @@ export const searchReducer = (state = initialState, action) => {
|
||||
...initialState,
|
||||
};
|
||||
|
||||
case types.SET_SEARCH_INIT_PERFORMED:
|
||||
return {
|
||||
...state,
|
||||
initPerformed: action.payload,
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user