Skip to content

Commit

Permalink
Filter history by model
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Nov 10, 2023
1 parent 2624c03 commit bc315f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/prem-chat/components/PremChatSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const PremChatSidebar = ({
};

const filteredHistory = history.filter((item) => {
return item.title.toLowerCase().includes(search.toLowerCase());
return item.model === serviceId && item.title.toLowerCase().includes(search.toLowerCase());
});

const closeModal = () => {
Expand Down

0 comments on commit bc315f9

Please sign in to comment.