From 03cad4fb0e4a5ebf3be6096f74d202cf924321da Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Thu, 24 Jul 2025 21:11:46 -0300 Subject: [PATCH] fix: load adjacent items in image preview --- frontend/src/views/files/Preview.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index d5f772a5..69cbc489 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -301,10 +301,8 @@ watch(route, () => { // Specify hooks onMounted(async () => { window.addEventListener("keydown", key); - if (fileStore.oldReq) { - listing.value = fileStore.oldReq.items; - updatePreview(); - } + listing.value = fileStore.oldReq?.items ?? null; + updatePreview(); }); onBeforeUnmount(() => window.removeEventListener("keydown", key));