From 88f2def068f2654000981eff70c3635283185e8e Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Thu, 17 Oct 2024 15:45:15 +0530 Subject: [PATCH] Fix search in repository list component --- .../projects/create/RepositoryList/RepositoryList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx b/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx index 8f7c7811..aa51f0b2 100644 --- a/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx +++ b/packages/frontend/src/components/projects/create/RepositoryList/RepositoryList.tsx @@ -64,9 +64,9 @@ export const RepositoryList = () => { // Check if selected account is an organization if (selectedAccount.value === gitUser.login) { - query = query + ` user:${selectedAccount}`; + query = query + ` user:${selectedAccount.value}`; } else { - query = query + ` org:${selectedAccount}`; + query = query + ` org:${selectedAccount.value}`; } const result = await octokit.rest.search.repos({