This commit is contained in:
Rizky 2024-02-12 17:45:42 +07:00
parent 51d0f5accd
commit 6ecaa36108
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export const EdPageHistoryMain: FC<{}> = ({}) => {
<div
className="border px-2 cursor-pointer hover:bg-blue-200 border border-blue-700 hover:bg-blue-700 hover:text-white transition-all "
onClick={async () => {
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();
}
}}