Inserting a column either on the left or right after insterting a value in the table throws an error:
Uncaught TypeError: Cannot read properties of undefined (reading 'splice')
at DenseStrategy.addColumns (DenseStrategy.js:56:23)
at AddressMapping.addColumns (AddressMapping.js:145:18)
at eval (DependencyGraph.js:386:27)
at EmptyStatistics.measure (Statistics.js:50:20)
at DependencyGraph.addColumns (DependencyGraph.js:385:16)
at Operations.doAddColumns (Operations.js:602:99)
at Operations.addColumns (Operations.js:121:12)
at CrudOperations.addColumns (CrudOperations.js:53:21)
at HyperFormula.addColumns (HyperFormula.js:370:26)
at Formulas.onAfterCreateCol (formulas.js:1049:33)
at Core.eval (formulas.js:252:40)
at fastCall (function.js:312:17)
at Hooks.run (pluginHooks.js:2666:47)
at Core.runHooks (core.js:4281:48)
at DataMap.createCol (dataMap.js:480:21)
at Object.alter (core.js:578:44)
at Core.alter (core.js:2556:10)
at Core.callback (columnLeft.js:35:12)
at eval (commandExecutor.js:103:25)
at arrayEach (array.js:188:9)
at CommandExecutor.execute (commandExecutor.js:102:28)
at ContextMenu.executeCommand (contextMenu.js:290:62)
at Menu.eval (contextMenu.js:166:69)
at fastCall (function.js:312:17)
at Menu.runLocalHooks (localHooks.js:52:32)
at Menu.executeCommand (menu.js:561:12)
at Core.beforeOnCellMouseUp (menu.js:262:20)
at fastCall (function.js:312:17)
at Hooks.run (pluginHooks.js:2666:47)
at Core.runHooks (core.js:4281:48)
at onCellMouseUp (tableView.js:859:27)
at Event.callListener (event.js:391:9)
at Event.onMouseUp (event.js:299:14)
at HTMLDivElement.eval (event.js:124:24)
at HTMLDivElement.callbackProxy (eventManager.js:72:18)
Here an example:
To reproduce:
- Click any cell
- Click Insert Column left or right from the context menu, notice how it works
- Insert a value in the same cell
- Retry to insert a column and notice the error