(res)
| 30 | const update = useMutation( |
| 31 | trpc.report.update.mutationOptions({ |
| 32 | onSuccess(res) { |
| 33 | dispatch(resetDirty()); |
| 34 | toast('Success', { |
| 35 | description: 'Report updated.', |
| 36 | }); |
| 37 | queryClient.invalidateQueries( |
| 38 | trpc.report.list.queryFilter({ |
| 39 | dashboardId: res.dashboardId, |
| 40 | projectId: res.projectId, |
| 41 | }), |
| 42 | ); |
| 43 | }, |
| 44 | onError: handleError, |
| 45 | }), |
| 46 | ); |
nothing calls this directly
no test coverage detected