-
[OPIK-3668] [FE] Fix annotation queue caching issues for last item and deleted changes (#4623)
发布于
2026-01-05 19:22:05 +00:00 Fixed two related bugs in the annotation queue navigation caching:
-
Last item's unsaved changes were being discarded when navigating away
- handlePrevious had no caching logic, causing data loss on the last item
- Added caching to handlePrevious to match handleNext behavior
-
Deleted cached changes would reappear when returning to an item
- Conditional caching (only when hasUnsavedChanges) didn't update cache on deletions
- Changed to always cache current state, ensuring deletions are preserved
Changes:
- Updated handleNext to always cache (removed hasUnsavedChanges condition)
- Updated handlePrevious to cache current state before navigation
- Both functions now have consistent caching behavior
下载附件
-