Skip to content

Commit 00dcda1

Browse files
committed
fix(Viewer): Provide id instead of fileid to File constructor
The `Node` object uses the `id` property in the `fileid` getter: https://github.com/nextcloud-libraries/nextcloud-files/blob/62c497479945f84249366690310ff1180198f85b/lib/node/node.ts#L331-L332
1 parent 186e91a commit 00dcda1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/Viewer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ export default defineComponent({
782782
const nodes = filteredFiles.map(
783783
file => new NcFile({
784784
source: davRemoteURL + davGetRootPath() + file.filename,
785-
fileid: file.fileid,
785+
id: file.fileid,
786786
displayname: file.displayname,
787787
mime: file.mime,
788788
mtime: new Date(file.lastmod),
@@ -1166,7 +1166,7 @@ export default defineComponent({
11661166
// Fake node to emit the event until Viewer is migrated to the new Node API.
11671167
const node = new NcFile({
11681168
source: url,
1169-
fileid,
1169+
id: fileid,
11701170
mime: this.currentFile.mime,
11711171
owner: this.currentFile.ownerId,
11721172
root: url.includes('remote.php/dav') ? davGetRootPath() : undefined,

0 commit comments

Comments
 (0)