Skip to content
Snippets Groups Projects
Commit c4181187 authored by Domonkos Gulyas's avatar Domonkos Gulyas
Browse files

CE-2941: Optimize listProjects request trigger

parent 1dab671c
No related branches found
No related tags found
2 merge requests!497CE-2790: Prepare for 4.0.0,!489CE-2941: Optimize listProjects request trigger
......@@ -100,7 +100,7 @@ export function CreateIOC() {
}, [nameQuery, getNames]);
useEffect(() => {
if (repoQuery) {
if (repoQuery && repoQuery.length > 2) {
getAllowedGitProjects();
}
}, [repoQuery, getAllowedGitProjects]);
......
......@@ -131,7 +131,7 @@ export default function IOCDetailAdmin({
useEffect(() => {
// fetch git repos only if user has entered a text and it wasn't previously fetched
if (repoQuery) {
if (repoQuery && repoQuery.length > 2) {
getAllowedGitProjects();
}
}, [repoQuery, getAllowedGitProjects]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment