diff --git a/src/components/GrampsjsTreeChart.js b/src/components/GrampsjsTreeChart.js
index 13e5483b..d3321ad4 100644
--- a/src/components/GrampsjsTreeChart.js
+++ b/src/components/GrampsjsTreeChart.js
@@ -82,7 +82,9 @@ class GrampsjsTreeChart extends GrampsjsTranslateMixin(LitElement) {
${TreeChart(data, {
depth: this.depth,
- childrenTriangle: this._hasChildren(),
+ childrenTriangle: this.descendants
+ ? this._hasParents()
+ : this._hasChildren(),
getImageUrl: d => getImageUrl(d?.data?.person || {}, 200),
orientation: this.descendants ? 'RTL' : 'LTR',
gapX: this.gapX,
@@ -100,6 +102,15 @@ class GrampsjsTreeChart extends GrampsjsTranslateMixin(LitElement) {
return false
}
+ _hasParents() {
+ const {handle} = getPersonByGrampsId(this.data, this.grampsId)
+ const data = getTree(this.data, handle, 2, false)
+ if (data.children && data.children.length) {
+ return true
+ }
+ return false
+ }
+
renderChildrenMenu() {
const {handle} = getPersonByGrampsId(this.data, this.grampsId)
const data = this.descendants