Skip to content

Commit

Permalink
Fixed: issue in searching when query changes by adding a watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Dec 24, 2024
1 parent 50b4eec commit d2ab52a
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 d2ab52a

Please sign in to comment.