Skip to content

Commit a0c2e57

Browse files
authored
suspense follow-up fixes (calcom#1080)
1 parent 1790aeb commit a0c2e57

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pages/integrations/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function WebhookListItem(props: { webhook: TWebhook; onEditWebhook: () => void }
4343
const utils = trpc.useContext();
4444
const deleteWebhook = trpc.useMutation("viewer.webhook.delete", {
4545
async onSuccess() {
46-
await utils.invalidateQueries(["viewer.webhhook.list"]);
46+
await utils.invalidateQueries(["viewer.webhook.list"]);
4747
},
4848
});
4949

server/routers/viewer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,6 @@ const loggedInViewerRouter = createProtectedRouter()
344344
const payment = integrations.flatMap((item) => (item.variant === "payment" ? [item] : []));
345345
const calendar = integrations.flatMap((item) => (item.variant === "calendar" ? [item] : []));
346346

347-
// get user's credentials + their connected integrations
348-
const calendarCredentials = getCalendarCredentials(user.credentials, user.id);
349-
350-
// get all the connected integrations' calendars (from third party)
351-
const connectedCalendars = await getConnectedCalendars(calendarCredentials, user.selectedCalendars);
352-
353347
return {
354348
conferencing: {
355349
items: conferencing,
@@ -363,7 +357,6 @@ const loggedInViewerRouter = createProtectedRouter()
363357
items: payment,
364358
numActive: countActive(payment),
365359
},
366-
connectedCalendars,
367360
};
368361
},
369362
})

0 commit comments

Comments
 (0)