From f9c497feffb311747f2dc96d76da589d4f528d88 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sat, 30 Dec 2023 20:33:29 +0100 Subject: [PATCH] fixup! fix: use filename to find current index Signed-off-by: Daniel Kesselberg --- src/views/Viewer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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