From 8c0e2ee8afa4e85260ac96a6b0055cfcf84e257f Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Tue, 12 May 2026 23:40:28 +0200
Subject: [PATCH] build fixes
---
.../FormGenerator/FormGeneratorTable/FormGeneratorTable.tsx | 2 +-
src/components/UnifiedDataBar/SourcesTab.tsx | 2 +-
src/hooks/useConnections.ts | 2 +-
src/pages/basedata/ConnectionsPage.tsx | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/components/FormGenerator/FormGeneratorTable/FormGeneratorTable.tsx b/src/components/FormGenerator/FormGeneratorTable/FormGeneratorTable.tsx
index 352f8e8..48ba976 100644
--- a/src/components/FormGenerator/FormGeneratorTable/FormGeneratorTable.tsx
+++ b/src/components/FormGenerator/FormGeneratorTable/FormGeneratorTable.tsx
@@ -3377,7 +3377,7 @@ export function FormGeneratorTable>({
g.value === null || g.value === undefined ? '__empty__' : String(g.value);
const sectionCollapsed = collapsedSectionKeys.has(sk);
const groupFieldSet = new Set(groupFields);
- const sectionColumns = providedColumns.map((col: any) =>
+ const sectionColumns = (providedColumns ?? []).map((col: any) =>
groupFieldSet.has(col.key) ? { ...col, filterable: false } : col,
);
const sectionInitialFilters = Object.fromEntries(
diff --git a/src/components/UnifiedDataBar/SourcesTab.tsx b/src/components/UnifiedDataBar/SourcesTab.tsx
index 4d2ccf4..63c4486 100644
--- a/src/components/UnifiedDataBar/SourcesTab.tsx
+++ b/src/components/UnifiedDataBar/SourcesTab.tsx
@@ -554,7 +554,7 @@ const SourcesTab: React.FC = ({ context, onSourcesChanged, onSe
connectionId: c.id,
authority: c.authority,
}))
- .sort((a, b) => a.label.localeCompare(b.label, undefined, { sensitivity: 'base' }));
+ .sort((a: TreeNode, b: TreeNode) => a.label.localeCompare(b.label, undefined, { sensitivity: 'base' }));
setTree(nodes);
})
.catch(() => { if (mountedRef.current) setTree([]); })
diff --git a/src/hooks/useConnections.ts b/src/hooks/useConnections.ts
index c6681d3..f53db1f 100644
--- a/src/hooks/useConnections.ts
+++ b/src/hooks/useConnections.ts
@@ -786,7 +786,7 @@ export function useConnections() {
* for backward-compat but new wizard code should call this.
*/
const createConnectionAndAuth = async (
- type: 'google' | 'msft' | 'clickup',
+ type: 'google' | 'msft' | 'clickup' | 'infomaniak',
knowledgeIngestionEnabled: boolean,
knowledgePreferences?: import('../api/connectionApi').KnowledgePreferences | null,
): Promise => {
diff --git a/src/pages/basedata/ConnectionsPage.tsx b/src/pages/basedata/ConnectionsPage.tsx
index 695d10a..081fc27 100644
--- a/src/pages/basedata/ConnectionsPage.tsx
+++ b/src/pages/basedata/ConnectionsPage.tsx
@@ -215,13 +215,13 @@ export const ConnectionsPage: React.FC = () => {
const handleWizardConnect = async (
type: ConnectorType,
knowledgeEnabled: boolean,
- knowledgePreferences: KnowledgePreferences | null,
+ knowledgePreferences?: KnowledgePreferences | null,
) => {
try {
- await createConnectionAndAuth(type, knowledgeEnabled, knowledgePreferences);
+ await createConnectionAndAuth(type, knowledgeEnabled, knowledgePreferences ?? null);
refetch();
if (knowledgeEnabled) {
- const LABELS: Record = { google: 'Google', msft: 'Microsoft 365', clickup: 'ClickUp' };
+ const LABELS: Record = { google: 'Google', msft: 'Microsoft 365', clickup: 'ClickUp', infomaniak: 'Infomaniak' };
showSyncBanner(LABELS[type] ?? type);
}
} catch (error) {