From 25de4b6198822b1d9ee479d4b7a0add84e11dd96 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 25 Nov 2024 15:16:56 -0300 Subject: [PATCH] fix: JS error when upload file Revert previous change Signed-off-by: Vitor Mattos --- src/Components/File/File.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/File/File.vue b/src/Components/File/File.vue index bc35e1c5c8..54911f712e 100644 --- a/src/Components/File/File.vue +++ b/src/Components/File/File.vue @@ -15,10 +15,10 @@ @load="backgroundFailed = false">
-
- {{ filesStore.files.get(currentNodeId).statusText !== 'none' ? filesStore.files.get(currentNodeId).statusText : '' }} +
+ {{ filesStore.files[currentNodeId].statusText !== 'none' ? filesStore.files[currentNodeId].statusText : '' }}
-

{{ filesStore.files.get(currentNodeId).name }}

+

{{ filesStore.files[currentNodeId].name }}

@@ -64,7 +64,7 @@ export default { return null } let previewUrl = '' - if (this.filesStore.files.get(this.currentNodeId)?.uuid?.length > 0) { + if (this.filesStore.files[this.currentNodeId]?.uuid?.length > 0) { previewUrl = generateOcsUrl('/apps/libresign/api/v1/file/thumbnail/{nodeId}', { nodeId: this.currentNodeId, })