fix: fix name for external auth connections (#11318)

This commit is contained in:
Kayla Washburn 2023-12-21 15:27:16 -07:00 committed by GitHub
parent db71c0fa54
commit 029c92fede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
onUnlinkExternalAuth,
onValidateExternalAuth,
}) => {
const name = app.id || app.type;
const name = app.display_name || app.id || app.type;
const authURL = "/external-auth/" + app.id;
const {
@ -127,10 +127,10 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
: link?.authenticated ?? false;
return (
<TableRow key={name}>
<TableRow key={app.id}>
<TableCell>
<AvatarData
title={app.display_name || app.id}
title={name}
avatar={
app.display_icon && (
<Avatar src={app.display_icon} variant="square" fitImage />