diff options
author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-22 17:47:15 -0700 |
---|---|---|
committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-22 17:47:15 -0700 |
commit | b989082c3502e8ad5ca3a89a8459e6ac72e38ccc (patch) | |
tree | 7d1c0b09d26d6cb33555569cd164da1c7043e89e /src/client/views/nodes/AudioBox.tsx | |
parent | 6df649ae1228f191a5654e45e898880b130afd28 (diff) | |
parent | 790d41009a678f560cd3b78e86069251e494cfd1 (diff) |
pull
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r-- | src/client/views/nodes/AudioBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 2e0be1c6a..cb0582d87 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -161,7 +161,7 @@ export class AudioBox extends ViewBoxBaseComponent<FieldViewProps, AudioDocument const funcs: ContextMenuProps[] = []; funcs.push({ description: (this.layoutDoc.playOnSelect ? "Don't play" : "Play") + " when document selected", event: () => this.layoutDoc.playOnSelect = !this.layoutDoc.playOnSelect, icon: "expand-arrows-alt" }); - ContextMenu.Instance.addItem({ description: "Options...", subitems: funcs, icon: "asterisk" }); + ContextMenu.Instance?.addItem({ description: "Options...", subitems: funcs, icon: "asterisk" }); } stopRecording = action(() => { |