diff --git a/src/pages/08_request-list/FormResponsibleUser.vue b/src/pages/08_request-list/FormResponsibleUser.vue index f0a7ea05..58426b93 100644 --- a/src/pages/08_request-list/FormResponsibleUser.vue +++ b/src/pages/08_request-list/FormResponsibleUser.vue @@ -48,6 +48,7 @@ watch(responsibleUserLocal, (lhs, rhs) => { :params="{ userType: 'MESSENGER', responsibleDistrictId: responsibleUserLocal ? districtId : undefined, + activeBranchOnly: true, }" :readonly :label="$t('general.select', { msg: $t('personnel.MESSENGER') })" diff --git a/src/stores/user/index.ts b/src/stores/user/index.ts index eb5d1f8f..0a171101 100644 --- a/src/stores/user/index.ts +++ b/src/stores/user/index.ts @@ -198,23 +198,17 @@ const useUserStore = defineStore('api-user', () => { }); } - async function fetchList( - opts?: { - page?: number; - pageSize?: number; - zipCode?: string; - query?: string; - includeBranch?: boolean; - userType?: string; - status?: Status; - responsibleDistrictId?: string; - }, - flow?: { - sessionId?: string; - refTransactionId?: string; - transactionId?: string; - }, - ) { + async function fetchList(opts?: { + page?: number; + pageSize?: number; + zipCode?: string; + query?: string; + includeBranch?: boolean; + userType?: string; + status?: Status; + responsibleDistrictId?: string; + activeBranchOnly?: boolean; + }) { const res = await api.get>(`/user`, { params: opts }); if (res && res.status === 200) {