refactor: handle active only employee

This commit is contained in:
Thanaphon Frappet 2024-12-23 11:36:32 +07:00
parent 83774ff09e
commit e61678f3f5

View file

@ -223,6 +223,7 @@ async function getWorkerList() {
query: state.search,
passport: true,
customerBranchId: props.customerBranchId,
activeOnly: true,
});
if (!ret) return false;
@ -241,6 +242,7 @@ async function getWorkerFromCriteria(
page: 1,
passport: true,
customerBranchId: props.customerBranchId,
activeOnly: true,
});
if (!ret) return false; // error, do not close dialog