fix bug with setup page (#5068)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>pull/5047/head^2
parent
59ef4fe459
commit
431e4224fe
|
@ -18,7 +18,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
|
||||||
const [newApiKey, setNewApiKey] = useState("");
|
const [newApiKey, setNewApiKey] = useState("");
|
||||||
const { t } = useLocale();
|
const { t } = useLocale();
|
||||||
const utils = trpc.useContext();
|
const utils = trpc.useContext();
|
||||||
const integrations = trpc.useQuery(["viewer.integrations", { variant: "other" }]);
|
const integrations = trpc.useQuery(["viewer.integrations", { variant: "automation" }]);
|
||||||
const oldApiKey = trpc.useQuery(["viewer.apiKeys.findKeyOfType", { appId: ZAPIER }]);
|
const oldApiKey = trpc.useQuery(["viewer.apiKeys.findKeyOfType", { appId: ZAPIER }]);
|
||||||
|
|
||||||
const deleteApiKey = trpc.useMutation("viewer.apiKeys.delete");
|
const deleteApiKey = trpc.useMutation("viewer.apiKeys.delete");
|
||||||
|
|
Loading…
Reference in New Issue