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);
|
g.value === null || g.value === undefined ? '__empty__' : String(g.value);
|
||||||
const sectionCollapsed = collapsedSectionKeys.has(sk);
|
const sectionCollapsed = collapsedSectionKeys.has(sk);
|
||||||
const groupFieldSet = new Set(groupFields);
|
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,
|
groupFieldSet.has(col.key) ? { ...col, filterable: false } : col,
|
||||||
);
|
);
|
||||||
const sectionInitialFilters = Object.fromEntries(
|
const sectionInitialFilters = Object.fromEntries(
|
||||||
|
|
|
||||||
|
|
@ -554,7 +554,7 @@ const SourcesTab: React.FC<SourcesTabProps> = ({ context, onSourcesChanged, onSe
|
||||||
connectionId: c.id,
|
connectionId: c.id,
|
||||||
authority: c.authority,
|
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);
|
setTree(nodes);
|
||||||
})
|
})
|
||||||
.catch(() => { if (mountedRef.current) setTree([]); })
|
.catch(() => { if (mountedRef.current) setTree([]); })
|
||||||
|
|
|
||||||
|
|
@ -786,7 +786,7 @@ export function useConnections() {
|
||||||
* for backward-compat but new wizard code should call this.
|
* for backward-compat but new wizard code should call this.
|
||||||
*/
|
*/
|
||||||
const createConnectionAndAuth = async (
|
const createConnectionAndAuth = async (
|
||||||
type: 'google' | 'msft' | 'clickup',
|
type: 'google' | 'msft' | 'clickup' | 'infomaniak',
|
||||||
knowledgeIngestionEnabled: boolean,
|
knowledgeIngestionEnabled: boolean,
|
||||||
knowledgePreferences?: import('../api/connectionApi').KnowledgePreferences | null,
|
knowledgePreferences?: import('../api/connectionApi').KnowledgePreferences | null,
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
|
|
|
||||||
|
|
@ -215,13 +215,13 @@ export const ConnectionsPage: React.FC = () => {
|
||||||
const handleWizardConnect = async (
|
const handleWizardConnect = async (
|
||||||
type: ConnectorType,
|
type: ConnectorType,
|
||||||
knowledgeEnabled: boolean,
|
knowledgeEnabled: boolean,
|
||||||
knowledgePreferences: KnowledgePreferences | null,
|
knowledgePreferences?: KnowledgePreferences | null,
|
||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
await createConnectionAndAuth(type, knowledgeEnabled, knowledgePreferences);
|
await createConnectionAndAuth(type, knowledgeEnabled, knowledgePreferences ?? null);
|
||||||
refetch();
|
refetch();
|
||||||
if (knowledgeEnabled) {
|
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);
|
showSyncBanner(LABELS[type] ?? type);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue