feat/vaults
Tomáš Mládek 2021-12-19 11:51:33 +01:00
parent db607f3425
commit e7d206beb2
1 changed files with 2 additions and 3 deletions

View File

@ -4,9 +4,8 @@
$: ({ attributes } = useEntity(address)); $: ({ attributes } = useEntity(address));
let mimeType: string | undefined; $: mimeType = String($attributes.find(([_, e]) => e.attribute === "FILE_MIME")?.[1]
$: mimeType = $attributes.find(([_, e]) => e.attribute === "FILE_MIME")?.[1] .value.c);
.value.c;
</script> </script>
<div class="preview" v-if="mimeType"> <div class="preview" v-if="mimeType">