Ver código fonte

Merge pull request #5651 from weseek/fix/90872-page-items-disappear-when-dnd

fix: Page items disappear when dnd
Yuki Takei 4 anos atrás
pai
commit
8e9f91d8f1

+ 4 - 0
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -195,6 +195,10 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
 
 
       await mutateChildren();
       await mutateChildren();
 
 
+      if (onRenamed != null) {
+        onRenamed();
+      }
+
       // force open
       // force open
       setIsOpen(true);
       setIsOpen(true);
     }
     }