Skip to content

Commit 214e766

Browse files
fix(tool item page): handle missing image
1 parent 4ad23eb commit 214e766

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/tools/[slug].vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
v-bind="{
6060
...offer,
6161
url: offer.url,
62-
image: `/img/tools/offers/${item.slug}/${offerKey}.png`,
62+
image: offer.image
63+
? `/img/tools/offers/${item.slug}/${offerKey}.png`
64+
: undefined,
6365
}"
6466
class="mb-3"
6567
>

0 commit comments

Comments
 (0)