Skip to content

Commit

Permalink
add conditional to rendering format.page_cover
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jan 11, 2023
1 parent 3d4cbfe commit d28a6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/helpers/page-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
</script>

<template>
<div :class="[format.page_cover && 'notion-page-icon-offset', big ? 'notion-page-icon-cover' : 'notion-page-icon']">
<div :class="[format?.page_cover && 'notion-page-icon-offset', big ? 'notion-page-icon-cover' : 'notion-page-icon']">
<img
v-if="icon?.includes('http')"
:src="props.mapImageUrl(icon, block)"
Expand Down

0 comments on commit d28a6f7

Please sign in to comment.