default type for fedapp is saml (#2539)

This commit is contained in:
Deepak Prabhakara 2024-04-06 00:00:06 +01:00 committed by GitHub
parent 1a4bdacc0b
commit f59e5bc663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -100,10 +100,16 @@ export const FederatedSAMLApps = ({
id: app.id,
cells: columns.map((column) => {
const dataIndex = column.dataIndex as keyof typeof app;
let columnText: string | undefined = app[dataIndex] as string;
if (column.key === 'type') {
if (!columnText) {
columnText = 'SAML';
}
columnText = columnText?.toUpperCase();
}
return {
wrap: column.wrap,
text:
column.key === 'type' ? (app[dataIndex] as string)?.toUpperCase() : (app[dataIndex] as string),
text: columnText,
};
}),
};