From d9fb0d9186ad77fb393e6d692a1aa0a8b990722c Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 1 Aug 2024 09:47:38 +0200 Subject: [PATCH] nullishToTrue fn --- src/components/common/VnSelect.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 675d69f30..f13a6501a 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -183,6 +183,10 @@ async function filterHandler(val, update) { } ); } + +function nullishToTrue(value) { + return value ?? true; +}