Skip to content

Commit a64cdcd

Browse files
committed
Optimize match query
1 parent d9cb7ba commit a64cdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/api/queries/workspaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const autoCreateWorkspace = (queryClient: QueryClient) => {
115115

116116
async function findMatchWorkspace(q: string): Promise<Workspace | undefined> {
117117
try {
118-
const { workspaces } = await API.getWorkspaces({ q });
118+
const { workspaces } = await API.getWorkspaces({ q, limit: 1 });
119119
const matchWorkspace = workspaces.at(0);
120120
if (matchWorkspace) {
121121
return matchWorkspace;

0 commit comments

Comments
 (0)