diff --git a/src/views/ReturnDetails.vue b/src/views/ReturnDetails.vue index 7f18c120..7e740572 100644 --- a/src/views/ReturnDetails.vue +++ b/src/views/ReturnDetails.vue @@ -164,6 +164,9 @@ export default defineComponent({ const current = await this.store.dispatch('return/setCurrent', { shipmentId: this.$route.params.id }) this.observeProductVisibility(); }, + ionViewDidLeave() { + this.productQoh = {}; + }, computed: { ...mapGetters({ current: 'return/getCurrent', @@ -329,9 +332,6 @@ export default defineComponent({ this.queryString = '' } }, - ionViewDidLeave() { - this.productQoh = {}; - }, setup() { const store = useStore(); const router = useRouter(); diff --git a/src/views/ShipmentDetails.vue b/src/views/ShipmentDetails.vue index 6db641f6..c20d3209 100644 --- a/src/views/ShipmentDetails.vue +++ b/src/views/ShipmentDetails.vue @@ -164,6 +164,9 @@ export default defineComponent({ await this.store.dispatch('shipment/setCurrent', { shipmentId: this.$route.params.id }) this.observeProductVisibility(); }, + ionViewDidLeave() { + this.productQoh = {}; + }, computed: { ...mapGetters({ current: 'shipment/getCurrent', @@ -350,9 +353,6 @@ export default defineComponent({ this.queryString = '' } }, - ionViewDidLeave() { - this.productQoh = {}; - }, setup() { const store = useStore(); const router = useRouter();