|
@@ -353,8 +353,6 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
createFromPageTree: true,
|
|
createFromPageTree: true,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- setCreating(false);
|
|
|
|
|
-
|
|
|
|
|
mutateChildren();
|
|
mutateChildren();
|
|
|
|
|
|
|
|
if (!hasDescendants) {
|
|
if (!hasDescendants) {
|
|
@@ -366,6 +364,9 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
|
}
|
|
}
|
|
|
|
|
+ finally {
|
|
|
|
|
+ setCreating(false);
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const inputValidator = (title: string | null): AlertInfo | null => {
|
|
const inputValidator = (title: string | null): AlertInfo | null => {
|