diff options
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 3448a4abd..87d5b07a2 100644 --- a/src/client/views/nodes/LabelBox.tsx +++ b/src/client/views/nodes/LabelBox.tsx @@ -67,7 +67,7 @@ export class LabelBox extends ViewBoxBaseComponent<FieldViewProps, LabelDocument          const params = Cast(this.paramsDoc["onClick-paramFieldKeys"], listSpec("string"), []);          const missingParams = params?.filter(p => !this.paramsDoc[p]);          params?.map(p => DocListCast(this.paramsDoc[p])); // bcz: really hacky form of prefetching ...  -        const label = StrCast(this.rootDoc[this.fieldKey], StrCast(this.rootDoc.title)); +        const label = typeof this.rootDoc[this.fieldKey] === "string" ? StrCast(this.rootDoc[this.fieldKey]) : StrCast(this.rootDoc.title);          return (              <div className="labelBox-outerDiv"                  onClick={action(() => this.clicked = !this.clicked)} | 
