aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FontIconBox/FontIconBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-03-06 13:29:30 -0500
committerbobzel <zzzman@gmail.com>2024-03-06 13:29:30 -0500
commit5458574510fcda755ae23b4001e17efa799865a5 (patch)
tree597529cac155f9494f73cd6f1d32374e6fea8d53 /src/client/views/nodes/FontIconBox/FontIconBox.tsx
parentbd9170eaa21a2fbccd0912f50d40cefaf0bbe47f (diff)
fixed plotly/mermaids loading from a new account
Diffstat (limited to 'src/client/views/nodes/FontIconBox/FontIconBox.tsx')
-rw-r--r--src/client/views/nodes/FontIconBox/FontIconBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx
index 91b6de80b..d24c79b10 100644
--- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx
+++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx
@@ -333,8 +333,8 @@ export class FontIconBox extends ViewBoxBaseComponent<ButtonProps>() {
label={this.label}
onPointerDown={e =>
setupMoveUpEvents(this, e, returnTrue, emptyFunction, (e, doubleTap) => {
- !doubleTap && script.script.run({ this: this.Document, self: this.Document, value: !toggleStatus, _readOnly_: false });
- doubleTap && double.script.run({ this: this.Document, self: this.Document, value: !toggleStatus, _readOnly_: false });
+ (!doubleTap || !double) && script.script.run({ this: this.Document, self: this.Document, value: !toggleStatus, _readOnly_: false });
+ doubleTap && double && double.script.run({ this: this.Document, self: this.Document, value: !toggleStatus, _readOnly_: false });
})
}
/>