build fixes

This commit is contained in:
ValueOn AG 2026-05-12 23:40:28 +02:00
parent 0e89ed2a64
commit 8c0e2ee8af
4 changed files with 6 additions and 6 deletions

View file

@ -3377,7 +3377,7 @@ export function FormGeneratorTable<T extends Record<string, any>>({
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(

View file

@ -554,7 +554,7 @@ const SourcesTab: React.FC<SourcesTabProps> = ({ 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([]); })

View file

@ -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<void> => {

View file

@ -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<ConnectorType, string> = { google: 'Google', msft: 'Microsoft 365', clickup: 'ClickUp' };
const LABELS: Record<ConnectorType, string> = { google: 'Google', msft: 'Microsoft 365', clickup: 'ClickUp', infomaniak: 'Infomaniak' };
showSyncBanner(LABELS[type] ?? type);
}
} catch (error) {