mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Fix delete attribute sagas bug
This commit is contained in:
parent
19f62defe6
commit
7bf1f3183c
@ -39,11 +39,12 @@ export function* fetchModel(action) {
|
||||
|
||||
export function* defaultSaga() {
|
||||
const loadModelWatcher = yield fork(takeLatest, MODEL_FETCH, fetchModel);
|
||||
yield fork(takeLatest, DELETE_ATTRIBUTE, attributeDelete);
|
||||
const deleteAttributeWatcher = yield fork(takeLatest, DELETE_ATTRIBUTE, attributeDelete);
|
||||
|
||||
yield take(LOCATION_CHANGE);
|
||||
|
||||
yield cancel(loadModelWatcher);
|
||||
yield cancel(deleteAttributeWatcher);
|
||||
}
|
||||
|
||||
// All sagas to be loaded
|
||||
|
Loading…
x
Reference in New Issue
Block a user