Skip to content

Commit

Permalink
Fix: optional chaining (#6747)
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 19, 2020
1 parent 190d1bb commit 7dc789f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/image-viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<footer>
<span>{{ image.type }}</span>
<span>{{ bytes(image.size) }}</span>
<span v-if="image.properties?.width">{{ number(image.properties.width) }}px × {{ number(image.properties.height) }}px</span>
<span v-if="image.properties && image.properties.width">{{ number(image.properties.width) }}px × {{ number(image.properties.height) }}px</span>
</footer>
</div>
</MkModal>
Expand Down

0 comments on commit 7dc789f

Please sign in to comment.