fix(dashboard): edit promotion campaign w/wo currrency (#13404)
**What** - a promotion couldn't be added to a campaign without a currency budget (on promotion details screen) - fix fetching campaigns pagination issue - move select to Combobox - fix currency restriction and move warning description to the label hint
This commit is contained in:
@@ -130,6 +130,7 @@ export const useAddOrRemoveCampaignPromotions = (
|
||||
onSuccess: (data, variables, context) => {
|
||||
queryClient.invalidateQueries({ queryKey: campaignsQueryKeys.details() })
|
||||
queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.lists() })
|
||||
queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.details() })
|
||||
options?.onSuccess?.(data, variables, context)
|
||||
},
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user