From 8c5fd1eb3c1ffb5bc17f5225a75f9dd2db40e460 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 13 Sep 2021 15:36:58 -0400 Subject: from last --- src/client/views/nodes/button/FontIconBox.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 40d5ad819..1997f4fa5 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -352,11 +352,8 @@ export class FontIconBox extends DocComponent(Fon ; const click = (value: ColorState) => { - const hex: string = value.hex; const s = ScriptField.MakeScript(script + '("' + Utils.colorString(value) + '", false)'); - if (s) { - undoBatch(() => s.script.run().result)(); - } + s && undoBatch(() => s.script.run().result)(); }; return (