From 59a7de025995c908a0984066ad49a56ae2682c68 Mon Sep 17 00:00:00 2001 From: acondal Date: Thu, 26 Oct 2023 11:19:42 +0200 Subject: [PATCH] fix: rm ?? operator from template EMP-2293 --- src/components/my-history/custom-my-history.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/my-history/custom-my-history.vue b/src/components/my-history/custom-my-history.vue index 285c9ba8..41de2f64 100644 --- a/src/components/my-history/custom-my-history.vue +++ b/src/components/my-history/custom-my-history.vue @@ -27,7 +27,7 @@ class="x-text1-sm x-text-lead-50 x-line-clamp-1" > - {{ filter.label ?? filter.id }} + {{ label(filter) }}

@@ -71,8 +71,13 @@ HistoryQuery }, setup() { + const label = (filter: Record): string => { + return filter.label ?? filter.id; + }; + return { - animation: StaggeredFadeAndSlide + animation: StaggeredFadeAndSlide, + label }; } });