เครื่องราชฯ filter หน่วยงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-24 11:36:31 +07:00
parent dd6f10d3c7
commit 1b2543bbb9

View file

@ -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 {