Skip to content

Commit

Permalink
* dtable: always show child label in row with parent value.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed May 15, 2024
1 parent 60081ea commit d6090c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dtable/src/plugins/nested/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const nestedPlugin: DTablePlugin<DTableNestedTypes, DTableNestedDependencies> =
const {id: rowID, data: rowData} = row;
const {nestedToggle, childLabel} = col.setting;
const info = this.getNestedRowInfo(rowID);
if (info.parent && childLabel) {
if (rowData![this.options.nestedParentKey || 'parent'] && childLabel) {
let labelView: ComponentChildren;
if (typeof childLabel === 'string') {
labelView = <span className="dtable-child-label label rounded-full size-sm gray-pale">{formatString(childLabel, rowData)}</span>;
Expand Down

0 comments on commit d6090c9

Please sign in to comment.