Skip to content

Commit

Permalink
fix(ui) Disable deleting Term Groups with children (datahub-project#6332
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chriscollins3456 authored and cccs-tom committed Nov 18, 2022
1 parent e989f96 commit c5f41d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function EntityDropdown(props: Props) {
? platformPrivileges.manageGlossaries
: me?.platformPrivileges.manageGlossaries;
const pageUrl = window.location.href;
const isDeleteDisabled = !!entityData?.children?.count;
const isDeleteDisabled = !!entityData?.children?.total;

/**
* A default path to redirect to if the entity is deleted.
Expand Down
1 change: 1 addition & 0 deletions datahub-web-react/src/graphql/glossaryNode.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ query getGlossaryNode($urn: String!) {
count: 10000
}
) {
total
relationships {
direction
entity {
Expand Down

0 comments on commit c5f41d1

Please sign in to comment.