GBonnaire / jspreadsheet-plugins-and-editors

Plugins and Editors for JSpreadsheet Pro 7, Pro 8 and Pro 9
https://repo.gbonnaire.fr/category/jspreadsheetpro
MIT License
13 stars 0 forks source link

statusbar JS error on switching sheet / undo #17

Closed dmt0 closed 1 year ago

dmt0 commented 1 year ago

Plugin Name with version

"@jspreadsheet/statusbar": "2.3.4"

JSpreadsheet version

v9.x

Describe the bug

JS error when there's no selection.

index.js?bed3:278 Uncaught TypeError: Cannot read properties of null (reading '0') at plugin.generateInformation (index.js?bed3:278:1) at plugin.onevent (index.js?bed3:120:1) at Object.eval (index.js?2151:115:177) at Object.G [as dispatch] (index.js?2151:123:180) at h. [as setValue] (index.js?2151:256:134) at Object.c (index.js?2151:107:362) at h.undo (index.js?2151:109:65) at h.undo (index.js?2151:89:402) at Object.onclick (index.js?2151:403:70)

image

Reproduction steps

  1. Type 1, 2, 3 into cells
  2. Create new worksheet
  3. Hit undo (it'll switch to first worksheet)
  4. Select second worksheet
  5. Hit undo Error!
GBonnaire commented 1 year ago

Thanks. I will fix that on next version 😊