Skip to content

Commit

Permalink
Merge pull request #40 from disha1202/#2admadb
Browse files Browse the repository at this point in the history
Implemented logic to clear order state and uploaded data on logout(#2admadb)
  • Loading branch information
adityasharma7 authored Jul 18, 2022
2 parents 5dd6531 + 8863729 commit 6c6384c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const actions: ActionTree<UserState, RootState> = {
async logout ({ commit }) {
// TODO add any other tasks if need
commit(types.USER_END_SESSION)
this.dispatch('user/clearOrderList');

},

Expand Down
1 change: 0 additions & 1 deletion src/views/PurchaseOrder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export default defineComponent({
content: [],
orderIdField: "",
productSkuField: "",
productUpcField: "",
dateField: "",
quantityField: "",
facilityField: "",
Expand Down

0 comments on commit 6c6384c

Please sign in to comment.