1
0

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:
Zef Hemel 2022-07-26 13:46:18 +02:00 committed by GitHub
commit a490b019e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);