diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index e817b7172..a27b365f3 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -1127,7 +1127,7 @@ export default { await axios.delete(url) emit('files:node:deleted', { fileid }) - // fileid is not unique, basename is + // fileid is not unique, basename is not unqiue, filename is const currentIndex = this.fileList.findIndex(file => file.filename === this.currentFile.filename) if (this.hasPrevious || this.hasNext) { // Checking the previous or next file