Skip to content

Commit 9adccdb

Browse files
fix: use nodeType instead of isEnvelope for icon display
Change isEnvelope computed property to check nodeType === 'envelope' instead of looking for a dedicated isEnvelope field. This aligns with the backend response structure and ensures envelope icons are displayed correctly immediately after creation. Signed-off-by: Vitor Mattos <[email protected]>
1 parent 1fa1e7c commit 9adccdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/FilesList/FileEntry/FileEntryPreview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
return this.source?.attributes?.favorite === 1
6363
},
6464
isEnvelope() {
65-
return this.source?.isEnvelope === true
65+
return this.source?.nodeType === 'envelope'
6666
},
6767
previewUrl() {
6868
if (this.backgroundFailed === true) {

0 commit comments

Comments
 (0)