diff options
author | bobzel <zzzman@gmail.com> | 2021-09-30 16:56:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-30 16:56:37 -0400 |
commit | 547a6aef2c35ef427f046f16b54da707e4d3252a (patch) | |
tree | 94fdf55c6f19ade30564898a06e9d4147aaf925e /src/client/views/nodes/LabelBox.tsx | |
parent | 271712498ad4021c06a15563c84f99f091696bea (diff) |
added back correct labeling of trimmed titles in audiobox
Diffstat (limited to 'src/client/views/nodes/LabelBox.tsx')
-rw-r--r-- | src/client/views/nodes/LabelBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LabelBox.tsx b/src/client/views/nodes/LabelBox.tsx index c26fd85c9..dae72bb78 100644 --- a/src/client/views/nodes/LabelBox.tsx +++ b/src/client/views/nodes/LabelBox.tsx @@ -38,7 +38,7 @@ export class LabelBox extends ViewBoxBaseComponent<(FieldViewProps & LabelBoxPro } getTitle() { - return this.props.label ? this.props.label : this.rootDoc["title-custom"] ? StrCast(this.rootDoc.title) : + return this.rootDoc["title-custom"] ? StrCast(this.rootDoc.title) : this.props.label ? this.props.label : typeof this.rootDoc[this.fieldKey] === "string" ? StrCast(this.rootDoc[this.fieldKey]) : StrCast(this.rootDoc.title); } |