diff --git a/app/web/src/nova/ed/panel/main/main-history.tsx b/app/web/src/nova/ed/panel/main/main-history.tsx index a36ef602..7707179b 100644 --- a/app/web/src/nova/ed/panel/main/main-history.tsx +++ b/app/web/src/nova/ed/panel/main/main-history.tsx @@ -94,7 +94,7 @@ export const EdPageHistoryMain: FC<{}> = ({}) => {
{ - if (confirm("Are you sure ?")) { + if (confirm("Are you sure ?") && local.root) { p.page.history.id = ""; p.page.history.show = false; @@ -106,6 +106,7 @@ export const EdPageHistoryMain: FC<{}> = ({}) => { } }); + await treeRebuild(p); p.render(); } }}