Fix deletion of page on renaming to current name
parent
9827ba7f76
commit
c21cc7cba0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue