Skip to content

Commit

Permalink
fix: orderstatus query
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtrazy committed Aug 10, 2024
1 parent 1455b77 commit 84b81bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/KitchenManager/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ const Dashboard: React.FC = () => {
});

const updateOrderItemStatusMutation = useMutation({
mutationFn: async (orderItem: OrderItemStatus) => {
await updateOrderItemStatus(orderItem);
},
mutationFn: (orderItem: OrderItemStatus) =>
updateOrderItemStatus(orderItem),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['orders'] });
},
Expand Down

0 comments on commit 84b81bc

Please sign in to comment.