vue2-excel-grid 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-excel-grid",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Excel-style grid component for Vue 2.6.14 with virtual scrolling",
5
5
  "license": "MIT",
6
6
  "author": "Fozilbek Raimberdiyev",
@@ -4378,6 +4378,10 @@ const ExcelGridComponent = {
4378
4378
 
4379
4379
  _treeFindLabel(nodes, keys, value) {
4380
4380
  for (const node of (nodes || [])) {
4381
+ // A malformed col.options (e.g. a host array with a hole/undefined entry,
4382
+ // often from an unguarded Array.prototype.find() result spread back in)
4383
+ // shouldn't crash the whole grid's render — skip it like a missing option.
4384
+ if (!node) continue
4381
4385
  if (String(node[keys.valueKey]) === value) {
4382
4386
  return node[keys.labelKey] != null ? node[keys.labelKey] : String(node[keys.valueKey])
4383
4387
  }