Skip to content

Opening context menu on tree tables throws an exception in the browser console #2029

@vbabich

Description

@vbabich

Description

Opening context menu on tree tables throws an exception in the browser console

Steps to reproduce

Run this snippet to create a tree table:

from deephaven.constants import NULL_INT
from deephaven import empty_table

source = empty_table(100).update_view(
    ["ID = i + 2", "Parent = i == 0 ? NULL_INT : i % 9"]
)

result_w_orphans = source.tree(id_col="ID", parent_col="Parent", promote_orphans=True)

Right-click on a table cell.

Expected:

  • No exceptions in the console

Actual:

LogProxy.js:87 [ContextMenu] Error: Value is null or undefined
    at I7 (Asserts.js:33:28)
    at IrisGridTreeTableModel.js:133:13
    at Generator.next (<anonymous>)
    at nr (IrisGridTreeTableModel.js:1:102)
    at l (IrisGridTreeTableModel.js:2:194)
    at IrisGridTreeTableModel.js:2:364
    at new Promise (<anonymous>)
    at IrisGridTreeTableModel.js:2:97
    at Ul.snapshot (IrisGridTreeTableModel.js:140:6)
    at Kl.snapshot (IrisGridProxyModel.js:182:26)
    at IrisGridContextMenuHandler.js:462:34
    at Generator.next (<anonymous>)
    at Or (IrisGridContextMenuHandler.js:3:102)
    at o (IrisGridContextMenuHandler.js:4:194)
    at IrisGridContextMenuHandler.js:4:364
    at new Promise (<anonymous>)
    at IrisGridContextMenuHandler.js:4:97
    at b.getCellFilterActions (IrisGridContextMenuHandler.js:566:6)
    at b.onContextMenu (IrisGridContextMenuHandler.js:680:27)
    at F.handleContextMenu (Grid.js:1439:24)
    at Object.Qqe (react-dom.production.min.js:52:317)
    at Xqe (react-dom.production.min.js:52:471)
    at Jqe (react-dom.production.min.js:53:35)
    at pfe (react-dom.production.min.js:100:68)
    at Qbe (react-dom.production.min.js:101:380)
    at react-dom.production.min.js:113:65
    at Sbe (react-dom.production.min.js:292:189)
    at Yqe (react-dom.production.min.js:50:57)
    at Jbe (react-dom.production.min.js:105:469)
    at Yae (react-dom.production.min.js:75:265)
    at Gae (react-dom.production.min.js:74:124)
    at e.unstable_runWithPriority (scheduler.production.min.js:18:343)
    at yv (react-dom.production.min.js:122:325)
    at _be (react-dom.production.min.js:292:48)
    at pGe (react-dom.production.min.js:73:352)

Versions

Engine Version: 0.34.2
Web UI Version: 0.78.0
Java Version: 21.0.3
Barrage Version: 0.6.0
Browser Name: Chrome 124
OS Name: macOS 10.15.7
@deephaven/js-plugin-ui: 0.13.1
@deephaven/js-plugin-plotly-express: 0.7.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions