diff options
| author | bobzel <zzzman@gmail.com> | 2023-08-29 16:33:37 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-08-29 16:33:37 -0400 |
| commit | 0c4f57875c8aaf599ff111a8b8122895d2addab3 (patch) | |
| tree | 785d3f65f1c1e01d2a02f5e9e8317445131e1215 /src/client/views/nodes/FontIconBox/FontIconBox.tsx | |
| parent | 349e586b01b18c641a4c753b709f4217a3f3e528 (diff) | |
more cleanup
Diffstat (limited to 'src/client/views/nodes/FontIconBox/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FontIconBox/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx index 1cf66fbdc..bb2069cc9 100644 --- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx @@ -235,7 +235,7 @@ export class FontIconBox extends DocComponent<ButtonProps>() { const list: IListItemProps[] = this.buttonList .filter(value => !Doc.noviceMode || !noviceList.length || noviceList.includes(value)) .map(value => ({ - text: value === "string" ? value.charAt(0).toUpperCase() + value.slice(1) : StrCast(DocCast(value)?.title), + text: typeof value === 'string' ? value.charAt(0).toUpperCase() + value.slice(1) : StrCast(DocCast(value)?.title), val: value, style: getStyle(value), onClick: undoable(() => script.script.run({ this: this.layoutDoc, self: this.rootDoc, value }), value), |
