Skip to content

Commit

Permalink
Fixed: Facility group search. (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed Aug 14, 2024
1 parent c368dd2 commit fe66e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/store/modules/facility/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ const actions: ActionTree<FacilityState, RootState> = {
}
total = resp.data.count
} else {
if (payload.viewIndex === 0 ) {
groups = []
}
throw resp.data
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/FindGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ion-searchbar :placeholder="translate('Search groups')" v-model="query.queryString" @keyup.enter="updateQuery()" />
</section>
</div>
<main v-if="groups">
<main v-if="groups && groups.length > 0">
<ion-card v-for="(group, index) in customSort(groups, ['OMS_FULFILLMENT', 'PICKUP'], 'facilityGroupId')" :key="index">
<ion-item lines="full">
<ion-label class="ion-text-wrap">
Expand Down

0 comments on commit fe66e7c

Please sign in to comment.