File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/web/web-app/features/plans Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import { createConnectQueryKey , useMutation } from '@connectrpc/connect-query'
1+ import { useMutation } from '@connectrpc/connect-query'
22import {
33 Button ,
44 DropdownMenu ,
@@ -94,9 +94,9 @@ export const PlanActions = () => {
9494
9595 const publishPlanMutation = useMutation ( publishPlanVersion , {
9696 onSuccess : async res => {
97- queryClient . invalidateQueries ( { queryKey : createConnectQueryKey ( getPlanOverview ) } )
98- queryClient . invalidateQueries ( { queryKey : createConnectQueryKey ( getPlanWithVersion ) } )
99- queryClient . invalidateQueries ( { queryKey : createConnectQueryKey ( listPlans ) } )
97+ queryClient . invalidateQueries ( { queryKey : [ getPlanOverview . service . typeName ] } )
98+ queryClient . invalidateQueries ( { queryKey : [ getPlanWithVersion . service . typeName ] } )
99+ queryClient . invalidateQueries ( { queryKey : [ listPlans . service . typeName ] } )
100100
101101 const version = res . planVersion ?. version
102102 setIsBusy ( false )
You can’t perform that action at this time.
0 commit comments