Fix search in repository list component

This commit is contained in:
IshaVenikar 2024-10-17 15:45:15 +05:30
parent f3b1839903
commit 5b55e7783e

View File

@ -64,9 +64,9 @@ export const RepositoryList = () => {
// Check if selected account is an organization // Check if selected account is an organization
if (selectedAccount.value === gitUser.login) { if (selectedAccount.value === gitUser.login) {
query = query + ` user:${selectedAccount}`; query = query + ` user:${selectedAccount.value}`;
} else { } else {
query = query + ` org:${selectedAccount}`; query = query + ` org:${selectedAccount.value}`;
} }
const result = await octokit.rest.search.repos({ const result = await octokit.rest.search.repos({