From 1b2543bbb95914ac4df7253a0ff769583852f22a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 24 Jan 2024 11:36:31 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF=20filter?= =?UTF-8?q?=20=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7=E0=B8=A2=E0=B8=87?= =?UTF-8?q?=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/07_insignia/store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/07_insignia/store.ts b/src/modules/07_insignia/store.ts index c6a1e4ff3..4d54ce759 100644 --- a/src/modules/07_insignia/store.ts +++ b/src/modules/07_insignia/store.ts @@ -125,8 +125,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => { */ function fetchOption(op: any) { const aId = agency.value ?? "00000000-0000-0000-0000-000000000000"; + const hasID = op.find((e: any) => e.id === agency.value); - if (aId !== "00000000-0000-0000-0000-000000000000") { + if (aId !== "00000000-0000-0000-0000-000000000000" && hasID) { typeOc.value = agency.value; optionsTypeOc.value = op; } else {