Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated logic to clear orders list through actions(#2335ca9) #16

Merged
merged 5 commits into from
Mar 30, 2022

Conversation

disha1202
Copy link
Contributor

No description provided.

@@ -37,5 +37,8 @@ const actions: ActionTree<OrderState, RootState> = {
updatedOrderListItems({ commit }, orderListItems){
commit(types.ORDER_LIST_ITEMS_UPDATED, orderListItems)
},
clearOrderList({ commit }){
commit(types.ORDER_LIST_CLEARED);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could use ORDER_LIST_UPDATED and pass empty list items and original

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested change.

@adityasharma7 adityasharma7 merged commit 11df5e0 into hotwax:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants