|
|
@@ -195,6 +195,10 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
|
|
|
await mutateChildren();
|
|
|
|
|
|
+ if (onRenamed != null) {
|
|
|
+ onRenamed();
|
|
|
+ }
|
|
|
+
|
|
|
// force open
|
|
|
setIsOpen(true);
|
|
|
}
|
|
|
@@ -209,6 +213,9 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
toastError(t('pagetree.something_went_wrong_with_moving_page'));
|
|
|
}
|
|
|
}
|
|
|
+ finally {
|
|
|
+ console.log('==============================');
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
const [{ isOver }, drop] = useDrop<ItemNode, Promise<void>, { isOver: boolean }>(() => ({
|