Merge pull request #566 from netlify/entry-stop-navigation-on-fail
Do not close entry page if it failed to save or delete.
This commit is contained in:
commit
ac8df98407
@ -297,7 +297,7 @@ export function persistEntry(collection) {
|
|||||||
kind: 'danger',
|
kind: 'danger',
|
||||||
dismissAfter: 8000,
|
dismissAfter: 8000,
|
||||||
}));
|
}));
|
||||||
return dispatch(entryPersistFail(collection, serializedEntry, error));
|
return Promise.reject(dispatch(entryPersistFail(collection, serializedEntry, error)));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -319,7 +319,7 @@ export function deleteEntry(collection, slug) {
|
|||||||
dismissAfter: 8000,
|
dismissAfter: 8000,
|
||||||
}));
|
}));
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return dispatch(entryDeleteFail(collection, slug, error));
|
return Promise.reject(dispatch(entryDeleteFail(collection, slug, error)));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user