Skip to content

Commit f59e5bc

Browse files
author
Deepak Prabhakara
authored
default type for fedapp is saml (#2539)
1 parent 1a4bdac commit f59e5bc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

internal-ui/src/federated-saml/FederatedSAMLApps.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,16 @@ export const FederatedSAMLApps = ({
100100
id: app.id,
101101
cells: columns.map((column) => {
102102
const dataIndex = column.dataIndex as keyof typeof app;
103+
let columnText: string | undefined = app[dataIndex] as string;
104+
if (column.key === 'type') {
105+
if (!columnText) {
106+
columnText = 'SAML';
107+
}
108+
columnText = columnText?.toUpperCase();
109+
}
103110
return {
104111
wrap: column.wrap,
105-
text:
106-
column.key === 'type' ? (app[dataIndex] as string)?.toUpperCase() : (app[dataIndex] as string),
112+
text: columnText,
107113
};
108114
}),
109115
};

0 commit comments

Comments
 (0)