chore: format

fix(lint): remove empty fragment and redundant undefined argument

chore: format
This commit is contained in:
Thomas Camlong committed 2026-05-01 10:23:48 +02:00
1 parent e0c2978f52
commit 62d571621f
4 files changed
+16 -9

No files matched your search

@@ -57,8 +57,13 @@ export const InitIntegrations = () => {
if (phase === "configure") { if (phase === "configure") {
const currentKind = selectedKinds[currentIndex]; const currentKind = selectedKinds[currentIndex];
if (currentKind === undefined) { if (currentKind === undefined) {
setPhase("done"); return (
return <></>; <Card w={64 * 14} maw="90vw" withBorder>
<Center py="xl">
<Loader />
</Center>
</Card>
);
} }
return ( return (
@@ -16,9 +16,10 @@ interface IntegrationMultiSelectGridProps {
} }
const getWidgetsByIntegration = () => { const getWidgetsByIntegration = () => {
const map = Object.fromEntries( const map = Object.fromEntries(integrationKinds.map((kind) => [kind, [] as WidgetKind[]])) as Record<
integrationKinds.map((kind) => [kind, [] as WidgetKind[]]), IntegrationKind,
) as Record<IntegrationKind, WidgetKind[]>; WidgetKind[]
>;
for (const [widgetKind, widget] of Object.entries(widgetImports) as [ for (const [widgetKind, widget] of Object.entries(widgetImports) as [
WidgetKind, WidgetKind,
@@ -16,9 +16,10 @@ interface IntegrationSelectGridProps {
} }
const getWidgetsByIntegration = () => { const getWidgetsByIntegration = () => {
const map = Object.fromEntries( const map = Object.fromEntries(integrationKinds.map((kind) => [kind, [] as WidgetKind[]])) as Record<
integrationKinds.map((kind) => [kind, [] as WidgetKind[]]), IntegrationKind,
) as Record<IntegrationKind, WidgetKind[]>; WidgetKind[]
>;
for (const [widgetKind, widget] of Object.entries(widgetImports) as [ for (const [widgetKind, widget] of Object.entries(widgetImports) as [
WidgetKind, WidgetKind,
@@ -177,6 +177,6 @@ export const onboardRouter = createTRPCRouter({
} }
} }
await nextOnboardingStepAsync(db, undefined); await nextOnboardingStepAsync(db);
}), }),
}); });