Skip to content

Commit

Permalink
Fleet UI: Switching vuln search types does not cause page re-render (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelElysia authored Sep 30, 2024
1 parent ff005d0 commit 9fa8244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/21923-switch-exact-search-focus-bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- UI fix: Switching vulnerability search types does not cause page re-render
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ const SoftwareVulnerabilities = ({
}
}, [queryParams.exploit, isExactMatchQuery]);

if (isLoading || isLoadingExactMatch) {
// !tableData is used to show the Spinner only on the first render.
// This prevents the Spinner from flashing on every data refresh, noticable
// when going between search and exact match search deselects search box.
if (!tableData && (isLoading || isLoadingExactMatch)) {
return <Spinner />;
}

Expand Down

0 comments on commit 9fa8244

Please sign in to comment.