Skip to content

Commit 5f082f1

Browse files
committed
IONOS: feat(Viewer): ensure fileinfo is preserved if not found in fileList
Signed-off-by: Franziska Bath <[email protected]>
1 parent 7ed9d57 commit 5f082f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Viewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ export default defineComponent({
757757
}
758758
759759
// get saved fileInfo
760-
fileInfo = this.fileList[this.currentIndex]
760+
fileInfo = this.currentIndex !== -1 ? this.fileList[this.currentIndex] : fileInfo
761761
762762
// show file
763763
this.currentFile = new File(fileInfo, mime, handler.component)

0 commit comments

Comments
 (0)