Skip to content

Commit

Permalink
Merge pull request #38 from zernonia/37-wont-render-page-if-page_cove…
Browse files Browse the repository at this point in the history
…r-is-missing

add conditional to rendering format.page_cover
  • Loading branch information
zernonia authored Jan 11, 2023
2 parents 3d4cbfe + d28a6f7 commit 9f3dd48
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

2 comments on commit 9f3dd48

@vercel
Copy link

@vercel vercel bot commented on 9f3dd48 Jan 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue3-notion – ./demo/nuxt

vue3-notion-git-master-zernonia.vercel.app
vue3-notion.vercel.app
vue3-notion-zernonia.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 9f3dd48 Jan 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.