From f536d0831710b5a99cb47866c1faa6b128f590c0 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 22 Jan 2025 09:27:58 +0100 Subject: [PATCH] fix: fixed VnLocation and warnings --- src/components/common/VnLocation.vue | 3 +++ src/components/common/VnSelect.vue | 2 +- src/pages/Worker/WorkerList.vue | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index 014b84b31..3ede24274 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -70,6 +70,9 @@ const handleModelValue = (data) => { [], }, optionLabel: { - type: [String], + type: [String, Function], default: 'name', }, optionValue: { diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index 0b784b993..8e02e59a4 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -196,7 +196,7 @@ async function autofillBic(worker) { prefix="workerSearch" :array-data-props="{ url: 'Workers/filter', - order: ['id DESC'], + order: 'id DESC', }" >