fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-11 16:08:40 +07:00
parent 38eb18a593
commit 860c8784a4
4 changed files with 9 additions and 9 deletions

View file

@ -45,7 +45,7 @@ const employeeFormStore = useEmployeeForm();
const customerBranchFormStore = useCustomerBranchForm();
const { t } = useI18n();
const { fetchListCustomeBranch, fetchBranchEmployee } = customerStore;
const { fetchListCustomerBranch, fetchBranchEmployee } = customerStore;
const {
currentFormData: customerBranchFormData,
state: customerBranchFormState,
@ -185,7 +185,7 @@ async function deleteBranchById(id: string) {
async function fetchList() {
if (!customerId.value) return;
const result = await fetchListCustomeBranch({
const result = await fetchListCustomerBranch({
customerId: customerId.value,
query: !!inputSearch.value ? inputSearch.value : undefined,
page: currentPageBranch.value,

View file

@ -1136,7 +1136,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
) {
state.value.currentIndexPassport = -1;
}
const foundBranch = await customerStore.fetchListCustomeBranchById(
const foundBranch = await customerStore.fetchListCustomerBranchById(
payload.customerBranchId,
);
@ -1173,7 +1173,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
update: (...args: unknown[]) => void,
) {
update(async () => {
const result = await customerStore.fetchListCustomeBranch({
const result = await customerStore.fetchListCustomerBranch({
includeCustomer: true,
query: val,
pageSize: 30,