fix: open non-trash page when open (#2431)

This commit is contained in:
himself65
2023-05-17 22:50:32 -07:00
parent 6f859967a9
commit ec142a7189
2 changed files with 8 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ export const PageDetailEditor: React.FC<PageDetailEditorProps> = ({
page.workspace.setPageMeta(page.id, {
updatedDate: Date.now(),
});
localStorage.setItem('last_page_id', page.id);
onLoad?.(page, editor);
},
[onLoad, setEditor]