fix: clean up dependencies and config schema (#704)
This commit is contained in:
committed by
GitHub
parent
778e6bac75
commit
ecb1218646
@ -8,6 +8,7 @@ import {
|
||||
ENTRIES_SUCCESS,
|
||||
ENTRY_DELETE_SUCCESS,
|
||||
ENTRY_FAILURE,
|
||||
ENTRY_PERSIST_SUCCESS,
|
||||
ENTRY_REQUEST,
|
||||
ENTRY_SUCCESS,
|
||||
FILTER_ENTRIES_FAILURE,
|
||||
@ -551,6 +552,19 @@ function entries(
|
||||
};
|
||||
}
|
||||
|
||||
case ENTRY_PERSIST_SUCCESS: {
|
||||
const payload = action.payload;
|
||||
const { collectionName } = payload;
|
||||
|
||||
const pages = { ...state.pages };
|
||||
delete pages[collectionName];
|
||||
|
||||
return {
|
||||
...state,
|
||||
pages,
|
||||
};
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
Reference in New Issue
Block a user