Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TOOL-2773] Fix incorrect caching in useCsvUpload hook (#5820)
## Problem solved Fixes: #5791 Problem: User uploads a CSV1 and then uploads a CSV2 - CSV2 is ignored and CSV1's data is sent instead of CSV2 because of incorrect query cache key <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the `normalizeQuery` in the `useCsvUpload` hook to improve clarity and consistency in parameter naming. ### Detailed summary - Changed the parameter name from `o` to `item` in the `rawData.map` function for better readability. - Updated the `queryKey` to use `item` directly instead of `o.address`. - Maintained the same functionality while enhancing code clarity. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information