From c21cc7cba0c9489c3a92d53d54eb55c5d7e9d89b Mon Sep 17 00:00:00 2001 From: Pantelis Vratsalis Date: Tue, 26 Jul 2022 13:49:04 +0300 Subject: [PATCH] Fix deletion of page on renaming to current name --- packages/plugs/core/page.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/plugs/core/page.ts b/packages/plugs/core/page.ts index dc1e5cc..6b51bfc 100644 --- a/packages/plugs/core/page.ts +++ b/packages/plugs/core/page.ts @@ -112,6 +112,10 @@ export async function renamePage() { if (!newName) { return; } + + if (newName.trim() === oldName.trim()) { + return; + } console.log("New name", newName); let pagesToUpdate = await getBackLinks(oldName);