Skip to content

Commit

Permalink
Merge pull request #889 from ymaheshwari1/fix/completed-page-searching
Browse files Browse the repository at this point in the history
Fixed: issue in searching when query changes by adding a watcher
  • Loading branch information
ymaheshwari1 authored Dec 24, 2024
2 parents 50b4eec + d2ab52a commit d36b422
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/Completed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,13 @@ export default defineComponent({
this.store.dispatch('order/clearCompletedOrders')
emitter.off('updateOrderQuery', this.updateOrderQuery)
},
watch: {
'completedOrders.list': {
handler() {
this.completedOrdersList = JSON.parse(JSON.stringify(this?.completedOrders.list)).slice(0, (this.completedOrders.query.viewIndex + 1) * (process.env.VUE_APP_VIEW_SIZE as any));
},
}
},
async ionViewWillEnter() {
this.isScrollingEnabled = false;
},
Expand Down

0 comments on commit d36b422

Please sign in to comment.