Skip to content

Commit

Permalink
Merge pull request #4030 from LibreSign/fix/js-error-when-upload-file
Browse files Browse the repository at this point in the history
fix: JS error when upload file
  • Loading branch information
vitormattos authored Nov 25, 2024
2 parents 7fc67a6 + 25de4b6 commit ec9b4fb
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 @@ -15,10 +15,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 @@ -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,
})
Expand Down

0 comments on commit ec9b4fb

Please sign in to comment.