From 269effd8deb04c2c0842ac326db344d8c83481c2 Mon Sep 17 00:00:00 2001 From: Settel Date: Sat, 27 Aug 2022 18:44:35 +0200 Subject: [PATCH] bugfix: set proper QuoteCard element id for new cards --- client/src/components/QuoteCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/QuoteCard.vue b/client/src/components/QuoteCard.vue index 4ebead1..5fda4ac 100644 --- a/client/src/components/QuoteCard.vue +++ b/client/src/components/QuoteCard.vue @@ -36,7 +36,7 @@ const props = defineProps<{ }>() const emit = defineEmits(['edit-end']) -const quoteElId = `quote-${props.quote.id}` +const quoteElId = `quote-${props.quote.id || 'new'}` const isEditMode = ref(false) const editQuote = () => {