Merge pull request #50 from m1lt0n/fix_page_rename_deletes_file_with_unchanged_name
Fix deletion of page on renaming to current name
This commit is contained in:
commit
a490b019e3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user