diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue index 9732f29..b075852 100644 --- a/src/components/FileTable.vue +++ b/src/components/FileTable.vue @@ -343,7 +343,7 @@ export default { this.editDialogDisabled = true; }, async updateFileName(names){ - if(names[0] !== names[1]){ + if(names.initialFileName !== names.newFileName){ const client = getClient() try{ const oldName = this.root_path + this.current_dir + names.initialFileName;