mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-19 22:58:05 +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
|
// Side bar data
|
||||||
const sideBarData = {
|
const sideBarData = {
|
||||||
photoUrl: undefined,
|
photoUrl: undefined,
|
||||||
avatarName: data?.corpGroup?.info?.displayName || data?.corpGroup?.name,
|
avatarName:
|
||||||
name: data?.corpGroup?.info?.displayName || data?.corpGroup?.name || undefined,
|
data?.corpGroup?.properties?.displayName ||
|
||||||
email: data?.corpGroup?.editableProperties?.email || undefined,
|
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,
|
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,
|
groupMemberRelationships: groupMemberRelationships as EntityRelationshipsResult,
|
||||||
groupOwnerShip: data?.corpGroup?.ownership as Ownership,
|
groupOwnerShip: data?.corpGroup?.ownership as Ownership,
|
||||||
urn,
|
urn,
|
||||||
|
@ -13,6 +13,11 @@ query getGroup($urn: String!, $membersCount: Int!) {
|
|||||||
slack
|
slack
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
|
properties {
|
||||||
|
displayName
|
||||||
|
description
|
||||||
|
email
|
||||||
|
}
|
||||||
ownership {
|
ownership {
|
||||||
...ownershipFields
|
...ownershipFields
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user