build fixes
This commit is contained in:
parent
0e89ed2a64
commit
8c0e2ee8af
4 changed files with 6 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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([]); })
|
||||
|
|
|
|||
|
|
@ -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> => {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue