#65

Update `history.tsx` to use correct filter when deleting item from list

Openscottybollingerwants to merge intofrom

The current code is filtering based on id (from useParams() at the top), which is the ID of the chat currently being viewed in the URL, not the one being deleted.

The code now correctly filters out the chat with the deleteId rather than the current URL id.

This ensures that:

  1. The correct chat is removed from the history list after deletion
  2. The filter operation matches the chat being deleted rather than the currently viewed chat
  3. The UI will update properly to reflect the deleted item

Activity

2
S
b85a86f
vercel[bot]1y ago

@scottybollinger is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.