Skip to content

Commit

Permalink
fix: JS error when upload file
Browse files Browse the repository at this point in the history
Revert previous change

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Nov 25, 2024
1 parent 1705f45 commit 8383ddb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/File/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
@load="backgroundFailed = false">
<FileIcon v-else v-once :size="128" />
<div class="enDot">
<div :class="filesStore.files.get(currentNodeId).statusText !== 'none' ? 'dot ' + statusToClass(filesStore.files.get(currentNodeId).status) : '' " />
<span>{{ filesStore.files.get(currentNodeId).statusText !== 'none' ? filesStore.files.get(currentNodeId).statusText : '' }}</span>
<div :class="filesStore.files[currentNodeId].statusText !== 'none' ? 'dot ' + statusToClass(filesStore.files[currentNodeId].status) : '' " />
<span>{{ filesStore.files[currentNodeId].statusText !== 'none' ? filesStore.files[currentNodeId].statusText : '' }}</span>
</div>
<h1>{{ filesStore.files.get(currentNodeId).name }}</h1>
<h1>{{ filesStore.files[currentNodeId].name }}</h1>
</div>
</template>

Expand Down Expand Up @@ -60,7 +60,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,
})
Expand Down

0 comments on commit 8383ddb

Please sign in to comment.