Skip to content

fix: honor save layout pagination size - #369

Open
han4wluc wants to merge 1 commit into
mainfrom
fix/save-load-pagination-size
Open

han4wluc wants to merge 1 commit into
mainfrom
fix/save-load-pagination-size

Conversation

@han4wluc

Copy link
Copy Markdown
Contributor

Save and load pages always hold 6 slots, whatever the layout's paginationSize: page 2 returns slots 7 to 12 even when the active layout sets paginationSize: 4.

Reproduce: a save/load layout with paginationSize: 4 on page 2 (regression test).

Fix: the page size comes from the topmost overlay layout's positive paginationSize, then the current presentation layout's, falling back to 6; direct selector calls can still pass slotsPerPage.

Tests: the regression expects slots 5 to 8 on page 2; the full suite (2,164 tests) and lint pass.

This branch has not been deployed

No deployments
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