From 83a4ee75d0460de3a18b60cedc0a15ba64ed1d9a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 12 Dec 2022 22:49:23 +0000 Subject: [PATCH] refactor: remove extra computed --- components/status/StatusPreviewCard.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/status/StatusPreviewCard.vue b/components/status/StatusPreviewCard.vue index 0b155e8d..f1b5b30e 100644 --- a/components/status/StatusPreviewCard.vue +++ b/components/status/StatusPreviewCard.vue @@ -8,7 +8,6 @@ const props = defineProps<{ /** When it is root card in the list, not appear as a child card */ root?: boolean }>() -const cardImage = $computed(() => props.card.image) const alt = $computed(() => `${props.card.title} - ${props.card.title}`) const isSquare = $computed(() => props.smallPictureOnly || props.card.width === props.card.height) const providerName = $computed(() => props.card.providerName ? props.card.providerName : new URL(props.card.url).hostname) @@ -35,7 +34,7 @@ const imageSrcset = $computed(() => props.card.image target="_blank" >
props.card.image >