You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Undo of a page rename fails after undoing the creation of a page with the old title #1296
Press Ctrl+Z. The new "page 1" goes to the Recycle bin.
Press Ctrl+Z again.
Expected
The first page is named "page 1" again.
Actual
The second undo fails with Another page named "page 1" already exists for tags: #Page. The page stays "alpha", and the whole undo and redo history is cleared, so further Ctrl+Z does nothing.
Cause
Undo of the page creation recycles the new page, and a recycled page keeps its title (by design, #802). The undo of the rename saves the old title, and validate-unique-for-page (deps/outliner/src/logseq/outliner/validate.cljs) counts the recycled page as a duplicate. apply-history-action! turns the exception into reason :error, which frontend.worker.undo-redo/apply-history-action does not skip, so it clears the history.
This is the undo form of #1075. A fix needs a decision on 1 of these:
Activity