fix: selector by form

This commit is contained in:
puriphatt 2024-04-19 11:10:18 +07:00
parent ab533c190d
commit 5aa46fc720

View file

@ -278,12 +278,13 @@ async function onSubmit() {
result.id, result.id,
); );
} }
onClose(); selectorLabel.value = formData.value.userType;
userStore.fetchList({ userStore.fetchList({
includeBranch: true, includeBranch: true,
userType: selectorLabel.value ?? undefined, userType: selectorLabel.value ?? undefined,
}); });
typeStats.value = await userStore.typeStats(); typeStats.value = await userStore.typeStats();
onClose();
}, },
}); });
} }