enable support for association-based attributes in markdown table (#10811)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-04-30 12:22:29 +05:00
committed by GitHub
parent cb92341556
commit 826264ef25
5 changed files with 116 additions and 25 deletions
@@ -188,10 +188,13 @@ export async function rebuildRelationshipTableViewModel (
continue
}
const span = rowSpanByLevel[0][rowIdx]
const isFirstInSpan =
rowIdx === 0 || expandedRows[rowIdx - 1].docsByLevel[0]?._id !== rowData.docsByLevel[0]?._id
cells.push({
attribute: attr,
rowSpan: 1,
object: rowIdx === 0 ? parentDoc : undefined,
rowSpan: isFirstInSpan ? span : 0,
object: isFirstInSpan ? parentDoc : undefined,
parentObject: undefined
})
}