Skip to content

fix/create-row-headers-out-of-bounds#1796

Open
Plekest wants to merge 1 commit intomasterfrom
fix/create-row-headers-out-of-bounds
Open

fix/create-row-headers-out-of-bounds#1796
Plekest wants to merge 1 commit intomasterfrom
fix/create-row-headers-out-of-bounds

Conversation

@Plekest
Copy link
Collaborator

@Plekest Plekest commented Mar 2, 2026

When columns are deleted down to the minimum allowed by minDimensions,
getNumberOfColumns() still returns the configured minimum instead of the
real column count. This caused createRow to loop beyond obj.headers length,
throwing "Cannot read properties of undefined (reading 'style')".

Fix: prefer obj.headers.length as it always reflects the runtime state.

@Plekest Plekest force-pushed the fix/create-row-headers-out-of-bounds branch from 754eb72 to 52b7d48 Compare March 2, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant