You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d6968e4
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(search): apply the cleanup passes to the Sim Search surface
Drop three memos over cheap derivations, make the search setter's
callers honest about their dependencies, ignore a whitespace-only query
from a link, give a dropdown setup field its hint, and drop the query
from the URL when the composer leaves Search.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/knowledge-search-results/knowledge-search-results.tsx
+11-18Lines changed: 11 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -118,14 +118,10 @@ export function KnowledgeSearchResults({
118
118
* The list also carries the viewer's legacy personal bases, which have no
119
119
* workspace; a search names one workspace and refuses a base outside it.
120
120
*/
121
-
constknowledgeBaseIds=useMemo(
122
-
()=>
123
-
knowledgeBases
124
-
.filter((kb)=>kb.workspaceId===workspaceId)
125
-
.slice(0,MAX_SEARCHED_KNOWLEDGE_BASES)
126
-
.map((kb)=>kb.id),
127
-
[knowledgeBases,workspaceId]
128
-
)
121
+
constknowledgeBaseIds=knowledgeBases
122
+
.filter((kb)=>kb.workspaceId===workspaceId)
123
+
.slice(0,MAX_SEARCHED_KNOWLEDGE_BASES)
124
+
.map((kb)=>kb.id)
129
125
const{
130
126
data: results,
131
127
isPending,
@@ -134,16 +130,13 @@ export function KnowledgeSearchResults({
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/mode-switcher/mode-switcher.test.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/mode-switcher/mode-switcher.tsx
0 commit comments