suspense follow-up fixes (#1080)

pull/1074/head
Alex Johansson 2021-10-30 17:03:49 +01:00 committed by GitHub
parent 1790aeb577
commit a0c2e57891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -43,7 +43,7 @@ function WebhookListItem(props: { webhook: TWebhook; onEditWebhook: () => void }
const utils = trpc.useContext();
const deleteWebhook = trpc.useMutation("viewer.webhook.delete", {
async onSuccess() {
await utils.invalidateQueries(["viewer.webhhook.list"]);
await utils.invalidateQueries(["viewer.webhook.list"]);
},
});

View File

@ -344,12 +344,6 @@ const loggedInViewerRouter = createProtectedRouter()
const payment = integrations.flatMap((item) => (item.variant === "payment" ? [item] : []));
const calendar = integrations.flatMap((item) => (item.variant === "calendar" ? [item] : []));
// get user's credentials + their connected integrations
const calendarCredentials = getCalendarCredentials(user.credentials, user.id);
// get all the connected integrations' calendars (from third party)
const connectedCalendars = await getConnectedCalendars(calendarCredentials, user.selectedCalendars);
return {
conferencing: {
items: conferencing,
@ -363,7 +357,6 @@ const loggedInViewerRouter = createProtectedRouter()
items: payment,
numActive: countActive(payment),
},
connectedCalendars,
};
},
})