aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorgeireann <geireann_lindfield_roberts@brown.edu>2021-07-24 14:29:47 -0400
committergeireann <geireann_lindfield_roberts@brown.edu>2021-07-24 14:29:47 -0400
commitc7a0a346238c55b8c223798f75cef758418aa051 (patch)
treec3cc03a8856db83a6aa6761ec290b5d367f336af /src/client/views
parent14e66ac5bcdaa5e244be68ccb8cbb0c495917910 (diff)
fixed minor issues and got rid of console error
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/ContextMenu.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/ContextMenu.tsx b/src/client/views/ContextMenu.tsx
index d96de72e3..c4fabbf99 100644
--- a/src/client/views/ContextMenu.tsx
+++ b/src/client/views/ContextMenu.tsx
@@ -218,7 +218,7 @@ export class ContextMenu extends React.Component {
@computed get menuItems() {
if (!this._searchString) {
- return this._items.map(item => <ContextMenuItem {...item} noexpand={this.itemsNeedSearch ? true : (item as any).noexpand} key={item.description} closeMenu={this.closeMenu} />);
+ return this._items.map((item, ind) => <ContextMenuItem {...item} noexpand={this.itemsNeedSearch ? true : (item as any).noexpand} key={ind + item.description} closeMenu={this.closeMenu} />);
}
return this.filteredViews;
}