type fix
parent
db607f3425
commit
e7d206beb2
|
@ -4,9 +4,8 @@
|
|||
|
||||
$: ({ attributes } = useEntity(address));
|
||||
|
||||
let mimeType: string | undefined;
|
||||
$: mimeType = $attributes.find(([_, e]) => e.attribute === "FILE_MIME")?.[1]
|
||||
.value.c;
|
||||
$: mimeType = String($attributes.find(([_, e]) => e.attribute === "FILE_MIME")?.[1]
|
||||
.value.c);
|
||||
</script>
|
||||
|
||||
<div class="preview" v-if="mimeType">
|
||||
|
|
Loading…
Reference in New Issue