Open AMBudnik opened 2 months ago
Once it's fixed in the HperFormula, we should verify if the analogous scenario is working correctly in Handsontable
i also have this error as the following simple case: let data=[ [], [,1], [,2], [,'=sum(B2:B3)'] ] const options = {licenseKey: 'gpl-v3',} let hf=HyperFormula.buildEmpty(options) hf.addSheet('sheet1') hf.setSheetContent(0,data) let can=hf.isItPossibleToRemoveColumns(0,[0,1]) console.log(can) let changes=hf.removeColumns(0,[0,1]) //throw exception
it's ok to call HyperFormula.buildFromSheets(xxx)
Thank you for sharing the scenario, @richcanvas we will test it as well and update you upon fix.
Description
In a specific combination of adding rows, content, and column amount alteration we get
Uncaught Error
from theDenseStrategy
.Case 1
addRows()
on last index)addRows()
on last index)setCellContents()
on the index of the lastly added row)addColumns()
on any index)Case 2
addRows()
on last index)addRows()
on last index)setCellContents()
on the index of the lastly added row)removeColumns ()
on any index),Video or screenshots
Error for column addition
Error for column removal
Demo
{column addition} https://stackblitz.com/edit/vitejs-vite-w55sez?file=index.html,main.js&terminal=dev ; {column removal} https://stackblitz.com/edit/vitejs-vite-1ssmt8?file=index.html,main.js&terminal=dev
HyperFormula version
2.7.0
Your framework
Vanilla JS
Your environment
Chrome 123, macOS Ventura