From 4826b681ce033fbbb78be37b4a7835d2eaebfe70 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 13 Jan 2025 14:58:47 +0100 Subject: [PATCH 1/2] refactor: refs #8246 modified addressFk field to use dashIfEmpty filter --- src/pages/Zone/ZoneList.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/Zone/ZoneList.vue b/src/pages/Zone/ZoneList.vue index e4a1774fe..389660c0f 100644 --- a/src/pages/Zone/ZoneList.vue +++ b/src/pages/Zone/ZoneList.vue @@ -4,7 +4,7 @@ import { useRouter } from 'vue-router'; import { computed, ref } from 'vue'; import axios from 'axios'; -import { toCurrency } from 'src/filters'; +import { dashIfEmpty, toCurrency } from 'src/filters'; import { toTimeFormat } from 'src/filters/date'; import { useVnConfirm } from 'composables/useVnConfirm'; import useNotify from 'src/composables/useNotify.js'; @@ -173,9 +173,7 @@ function showValidAddresses(row) { if (isValid) return `${row.address?.nickname}, ${row.address?.postcode?.town?.name} (${row.address?.province?.name})`; - else return '-'; } - return '-'; } @@ -207,7 +205,7 @@ function showValidAddresses(row) { :right-search="false" >