diff options
author | bobzel <zzzman@gmail.com> | 2021-09-27 14:40:30 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-27 14:40:30 -0400 |
commit | 6547bbc949b8333fc1dd86e11ecda5d98ae4a8d9 (patch) | |
tree | 317594efd0ddba018eb3f345bbf81dd8e32d85aa /src/client/views/nodes/LabelBox.tsx | |
parent | b3c6f5c4abb93c6178bb3d90aa68fad86e690097 (diff) | |
parent | eb529611c97c9936577697b829c50b4ca0736c6e (diff) |
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/nodes/LabelBox.tsx')
-rw-r--r-- | src/client/views/nodes/LabelBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/LabelBox.tsx b/src/client/views/nodes/LabelBox.tsx index 97b1aac86..c26fd85c9 100644 --- a/src/client/views/nodes/LabelBox.tsx +++ b/src/client/views/nodes/LabelBox.tsx @@ -38,8 +38,8 @@ export class LabelBox extends ViewBoxBaseComponent<(FieldViewProps & LabelBoxPro } getTitle() { - 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); + return this.props.label ? this.props.label : this.rootDoc["title-custom"] ? StrCast(this.rootDoc.title) : + typeof this.rootDoc[this.fieldKey] === "string" ? StrCast(this.rootDoc[this.fieldKey]) : StrCast(this.rootDoc.title); } protected createDropTarget = (ele: HTMLDivElement) => { |