()
| 49 | const navigate = useNavigate(); |
| 50 | const client = useQueryClient(); |
| 51 | const handleSuccess = () => { |
| 52 | toast.success('Integration created'); |
| 53 | popModal(); |
| 54 | client.invalidateQueries(trpc.integration.list.pathFilter()); |
| 55 | client.invalidateQueries( |
| 56 | trpc.integration.get.queryFilter({ id: props.id }), |
| 57 | ); |
| 58 | navigate({ |
| 59 | to: '/$organizationId/integrations/installed', |
| 60 | params: { |
| 61 | organizationId, |
| 62 | }, |
| 63 | }); |
| 64 | }; |
| 65 | |
| 66 | const renderForm = () => { |
| 67 | if (props.id && query.isLoading) { |
nothing calls this directly
no outgoing calls
no test coverage detected