Scheduling infrastructure for absolutely everyone.
suspense follow-up fixes (#1080)
Alex Johanssona0c2e57891be
diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsxindex 0cb11927877..c74342207d3 100644--- a/pages/integrations/index.tsx+++ b/pages/integrations/index.tsx@@ -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"]);},});diff --git a/server/routers/viewer.tsx b/server/routers/viewer.tsxindex 89244d5512a..17da551900b 100644--- a/server/routers/viewer.tsx+++ b/server/routers/viewer.tsx@@ -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,};},})