Skip to content

Commit

Permalink
Merge pull request #4034 from LibreSign/backport/4030/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: JS error when upload file
  • Loading branch information
vitormattos authored Nov 25, 2024
2 parents 21a20f4 + 8383ddb commit 2443981
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 2443981

Please sign in to comment.