mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 14:16:48 +00:00
fix: Update GroupProfile to read from properties over deprecated info aspect (#4475)
This commit is contained in:
parent
1a20f76225
commit
c9b40ec1ca
@ -89,11 +89,20 @@ export default function GroupProfile() {
|
||||
// Side bar data
|
||||
const sideBarData = {
|
||||
photoUrl: undefined,
|
||||
avatarName: data?.corpGroup?.info?.displayName || data?.corpGroup?.name,
|
||||
name: data?.corpGroup?.info?.displayName || data?.corpGroup?.name || undefined,
|
||||
email: data?.corpGroup?.editableProperties?.email || undefined,
|
||||
avatarName:
|
||||
data?.corpGroup?.properties?.displayName ||
|
||||
data?.corpGroup?.name ||
|
||||
data?.corpGroup?.info?.displayName ||
|
||||
undefined,
|
||||
name:
|
||||
data?.corpGroup?.properties?.displayName ||
|
||||
data?.corpGroup?.name ||
|
||||
data?.corpGroup?.info?.displayName ||
|
||||
undefined,
|
||||
email: data?.corpGroup?.editableProperties?.email || data?.corpGroup?.properties?.email || undefined,
|
||||
slack: data?.corpGroup?.editableProperties?.slack || undefined,
|
||||
aboutText: data?.corpGroup?.editableProperties?.description || undefined,
|
||||
aboutText:
|
||||
data?.corpGroup?.editableProperties?.description || data?.corpGroup?.properties?.description || undefined,
|
||||
groupMemberRelationships: groupMemberRelationships as EntityRelationshipsResult,
|
||||
groupOwnerShip: data?.corpGroup?.ownership as Ownership,
|
||||
urn,
|
||||
|
@ -13,6 +13,11 @@ query getGroup($urn: String!, $membersCount: Int!) {
|
||||
slack
|
||||
email
|
||||
}
|
||||
properties {
|
||||
displayName
|
||||
description
|
||||
email
|
||||
}
|
||||
ownership {
|
||||
...ownershipFields
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user