mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix: when auth is disabled, the users entity doesn't exist
This commit is contained in:
@@ -70,9 +70,11 @@ export const SettingNewModal = ({
|
||||
const [module, ...restOfPath] = path;
|
||||
const addPath = [...restOfPath, newKey].join(".");
|
||||
if (await actions.add(module as any, addPath, data)) {
|
||||
navigate(prefixPath + newKey, {
|
||||
replace: true
|
||||
});
|
||||
setTimeout(() => {
|
||||
navigate(prefixPath + newKey, {
|
||||
replace: true
|
||||
});
|
||||
}, 500);
|
||||
} else {
|
||||
setSubmitting(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user