diff options
author | bobzel <zzzman@gmail.com> | 2020-09-14 12:23:50 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-14 12:23:50 -0400 |
commit | 3893d4913852bd92b2a71880bb7c7cf39aba0c2c (patch) | |
tree | eb96997cd189d9794d5197064d3ca106cfca4cb7 /src/client/views/ContextMenuItem.tsx | |
parent | bf5718d25e372689b97965eafc80dd7cbdd2963c (diff) |
fixes to sidebar menus to simplify them for novices. fixed clearAll menu items
Diffstat (limited to 'src/client/views/ContextMenuItem.tsx')
-rw-r--r-- | src/client/views/ContextMenuItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/ContextMenuItem.tsx b/src/client/views/ContextMenuItem.tsx index eddecb7a7..d3429cdfb 100644 --- a/src/client/views/ContextMenuItem.tsx +++ b/src/client/views/ContextMenuItem.tsx @@ -34,7 +34,7 @@ export class ContextMenuItem extends React.Component<ContextMenuProps & { select constructor(props: ContextMenuProps | SubmenuProps) { super(props); if ("subitems" in this.props) { - this.props.subitems.forEach(i => this._items.push(i)); + this.props.subitems?.forEach(i => this._items.push(i)); } } |