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,
);
}
onClose();
selectorLabel.value = formData.value.userType;
userStore.fetchList({
includeBranch: true,
userType: selectorLabel.value ?? undefined,
});
typeStats.value = await userStore.typeStats();
onClose();
},
});
}