Skip to content

Commit

Permalink
UI - Prevent losing focus when searching queries by name (#25031)
Browse files Browse the repository at this point in the history
## Follow up for #21855 


https://github.com/user-attachments/assets/b364a662-e2bc-4d3d-a4bc-de3d204c15c0

- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
  • Loading branch information
jacobshandling and Jacob Shandling authored Dec 30, 2024
1 parent c2bd802 commit 47271bc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ const ManageQueriesPage = ({
};

const renderQueriesTable = () => {
if (isLoadingQueries) {
return <Spinner />;
}
if (queriesError) {
return <TableDataError />;
}
Expand All @@ -285,7 +282,7 @@ const ManageQueriesPage = ({
totalQueriesCount={queriesResponse?.count}
hasNextResults={!!queriesResponse?.meta.has_next_results}
onlyInheritedQueries={onlyInheritedQueries}
isLoading={isFetchingQueries}
isLoading={isLoadingQueries || isFetchingQueries}
onCreateQueryClick={onCreateQueryClick}
onDeleteQueryClick={onDeleteQueryClick}
isOnlyObserver={isOnlyObserver}
Expand Down

0 comments on commit 47271bc

Please sign in to comment.