chatwoot/app/javascript
Sivin Varghese a8ecbd3919
chore: Auto-fetch previous page on last item deletion (#10714)
# Pull Request Template

## Description

This PR fixes an issue where deleting the last item on the last page of
responses/documents, would show an empty state instead of loading the
previous page.

Fixes
> If you have pending responses spanning 2 or more pages .. and you
delete the last response in the last page.. instead of showing the
previous page the system show empty state.

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Loom video**

https://www.loom.com/share/b0e89f774ccd45dab0e8dba2c34bd1ac?sid=d9923bcd-5030-42d9-9b7f-170df5297cfd


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-01-20 14:34:23 +05:30
..
dashboard chore: Auto-fetch previous page on last item deletion (#10714) 2025-01-20 14:34:23 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints feat: update notification settings (#10529) 2024-12-05 19:05:04 +05:30
portal style: apply fixes for eslint issues [cw-3590] (#10210) 2024-10-03 15:02:12 +05:30
sdk fix: Avoid overflow caused by the empty span element (#9753) 2024-07-10 19:56:46 -07:00
shared feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
v3 fix: Fix issue with profile picture not updating (#10532) 2024-12-04 15:02:29 -08:00
widget chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
histoire.setup.ts feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00