fix(sort): don't clear sort data on entries request (#3648)

This commit is contained in:
Erez Rokah 2020-04-22 16:05:47 +03:00 committed by GitHub
parent 88b6c633af
commit cf57284f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,11 +123,9 @@ const entries = (
case ENTRIES_REQUEST: {
const payload = action.payload as EntriesRequestPayload;
const newState = state.withMutations(map => {
map.deleteIn(['sort', payload.collection]);
map.setIn(['pages', payload.collection, 'isFetching'], true);
});
clearSort();
return newState;
}