mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-26 20:26:13 +01:00
feat: support search-style-url
fix: url can be null in conversationId and query fix: get conversation api should handle not found.
This commit is contained in:
parent
8ea98cca5d
commit
370dc2dd8a
10 changed files with 147 additions and 48 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { atom, selector } from 'recoil';
|
||||
import buildTree from '~/utils/buildTree';
|
||||
|
||||
const isSearchEnabled = atom({
|
||||
key: 'isSearchEnabled',
|
||||
|
|
@ -10,6 +11,18 @@ const searchQuery = atom({
|
|||
default: ''
|
||||
});
|
||||
|
||||
const searchResultMessages = atom({
|
||||
key: 'searchResultMessages',
|
||||
default: null
|
||||
});
|
||||
|
||||
const searchResultMessagesTree = selector({
|
||||
key: 'searchResultMessagesTree',
|
||||
get: ({ get }) => {
|
||||
return buildTree(get(searchResultMessages), true);
|
||||
}
|
||||
});
|
||||
|
||||
const isSearching = selector({
|
||||
key: 'isSearching',
|
||||
get: ({ get }) => {
|
||||
|
|
@ -21,5 +34,7 @@ const isSearching = selector({
|
|||
export default {
|
||||
isSearchEnabled,
|
||||
isSearching,
|
||||
searchResultMessages,
|
||||
searchResultMessagesTree,
|
||||
searchQuery
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue