From 8025b0b38e49a61808a8924382247fe2c9ac1e05 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 26 Apr 2024 01:41:25 -0400 Subject: from last --- src/client/views/nodes/FontIconBox/FontIconBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx index 754c6a68c..ebd6c97bc 100644 --- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx @@ -275,7 +275,7 @@ export class FontIconBox extends ViewBoxBaseComponent() { // Determine the type of toggle button const tooltip: string = StrCast(this.Document.toolTip); - const script = ScriptCast(this.Document.onClick).script; + const script = ScriptCast(this.Document.onClick)?.script; const toggleStatus = script?.run({ this: this.Document, self: this.Document, value: undefined, _readOnly_: true }).result; // Colors const color = this._props.styleProvider?.(this.layoutDoc, this._props, StyleProp.Color); -- cgit v1.2.3-70-g09d2