8000 Fix negative page numbers in Pagination component by laurakwhit · Pull Request #1462 · temporalio/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix negative page numbers in Pagination component #1462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

laurakwhit
Copy link
Contributor

… page is out of bounds

Description & motivation 💭

getStartingIndexForPage was returning a negative index if the total number of items was less than itemsPerPage when a page was out of bounds.

Screenshots (if applicable) 📸

Screenshot 2023-06-28 at 5 07 47 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@vercel
Copy link
vercel bot commented Jun 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
holocene ⬜️ Ignored (Inspect) Jun 28, 2023 11:09pm

@laurakwhit laurakwhit merged commit 92f7bbf into main Jun 29, 2023
@laurakwhit laurakwhit deleted the DT-1178-Negative-numbers-in-pagination-on-Recent-events-when-switching-between-views branch June 29, 2023 15:00
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.

2 participants
0