Skip to content

Commit ebbf638

Browse files
committed
fix: added the dirPath to the node.path to file comparisons for use in subfolders in a file share. Previously, node.path for files ina a shaer were /${file.basename}
Fixes #2977 Fixes #2976
1 parent 9154085 commit ebbf638

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/Viewer.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,10 @@ export default defineComponent({
794794
sortingMode: this.sortingConfig.key,
795795
sortingOrder: this.sortingConfig.asc ? 'asc' : 'desc',
796796
})
797-
this.fileList = sortedNodes.map(node => filteredFiles.find(file => file.filename === node.path))
798797
798+
this.fileList = sortedNodes.map(node => {
799+
return filteredFiles.find(file => file.filename === String(dirPath + node.path))
800+
})
799801
// store current position
800802
this.currentIndex = this.fileList.findIndex(file => file.filename === fileInfo.filename)
801803
this.updatePreviousNext()

0 commit comments

Comments
 (0)