Skip to content

Commit

Permalink
get tickets after adding new
Browse files Browse the repository at this point in the history
  • Loading branch information
santipalenque committed Nov 5, 2024
1 parent 6c1bb4a commit a3df76f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/order-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ export const addTicketsToOrder =
authErrorHandler
)(params)(dispatch)
.then(() => {
dispatch(stopLoading());
// load tickets on separate request bc performance issues ( there are orders with over 100 tickets )
getOrderTickets(orderId, 1)(dispatch, getState);
})
.catch(() => dispatch(stopLoading()));
};
Expand Down

0 comments on commit a3df76f

Please sign in to comment.