Browse Source

Fixes search validation

main
Keith Daulton 2 years ago
committed by Eric Amodio
parent
commit
af31461280
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 3
- 3
src/webviews/apps/plus/graph/GraphWrapper.tsx View File

@ -351,12 +351,12 @@ export function GraphWrapper({
const detail = e.detail;
setSearch(detail);
const isValid = detail.pattern.length < 3;
if (isValid) {
const inValid = detail.pattern.length < 3;
if (inValid) {
setSearchResultKey(undefined);
setSearchResultIds(undefined);
}
onSearchCommits?.(isValid ? detail : undefined);
onSearchCommits?.(inValid ? undefined : detail);
};
useLayoutEffect(() => {

Loading…
Cancel
Save