suspense follow-up fixes (#1080)
parent
1790aeb577
commit
a0c2e57891
|
@ -43,7 +43,7 @@ function WebhookListItem(props: { webhook: TWebhook; onEditWebhook: () => void }
|
||||||
const utils = trpc.useContext();
|
const utils = trpc.useContext();
|
||||||
const deleteWebhook = trpc.useMutation("viewer.webhook.delete", {
|
const deleteWebhook = trpc.useMutation("viewer.webhook.delete", {
|
||||||
async onSuccess() {
|
async onSuccess() {
|
||||||
await utils.invalidateQueries(["viewer.webhhook.list"]);
|
await utils.invalidateQueries(["viewer.webhook.list"]);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -344,12 +344,6 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||||
const payment = integrations.flatMap((item) => (item.variant === "payment" ? [item] : []));
|
const payment = integrations.flatMap((item) => (item.variant === "payment" ? [item] : []));
|
||||||
const calendar = integrations.flatMap((item) => (item.variant === "calendar" ? [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 {
|
return {
|
||||||
conferencing: {
|
conferencing: {
|
||||||
items: conferencing,
|
items: conferencing,
|
||||||
|
@ -363,7 +357,6 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||||
items: payment,
|
items: payment,
|
||||||
numActive: countActive(payment),
|
numActive: countActive(payment),
|
||||||
},
|
},
|
||||||
connectedCalendars,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue