Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(Viewer): Provide id instead of fileid to File constructor
  • Loading branch information
artonge committed Oct 9, 2025
commit 417df0b88775e05f3af4cdae309355ce0291809a
4 changes: 2 additions & 2 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export default defineComponent({
const nodes = filteredFiles.map(
file => new NcFile({
source: davRemoteURL + davGetRootPath() + file.filename,
fileid: file.fileid,
id: file.fileid,
displayname: file.displayname,
mime: file.mime,
mtime: new Date(file.lastmod),
Expand Down Expand Up @@ -1166,7 +1166,7 @@ export default defineComponent({
// Fake node to emit the event until Viewer is migrated to the new Node API.
const node = new NcFile({
source: url,
fileid,
id: fileid,
mime: this.currentFile.mime,
owner: this.currentFile.ownerId,
root: url.includes('remote.php/dav') ? davGetRootPath() : undefined,
Expand Down
Loading