1
0

Fix deletion of page on renaming to current name

This commit is contained in:
Pantelis Vratsalis 2022-07-26 13:49:04 +03:00
parent 9827ba7f76
commit c21cc7cba0

View File

@ -112,6 +112,10 @@ export async function renamePage() {
if (!newName) { if (!newName) {
return; return;
} }
if (newName.trim() === oldName.trim()) {
return;
}
console.log("New name", newName); console.log("New name", newName);
let pagesToUpdate = await getBackLinks(oldName); let pagesToUpdate = await getBackLinks(oldName);