Skip to content

Commit

Permalink
fix traces redirection while QA enabled (#2369) (#2374)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8adb81e)

Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <tackadam@amazon.com>
  • Loading branch information
3 people authored Mar 5, 2025
1 parent 25d8f42 commit e200fbe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion public/components/common/search/query_area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function QueryArea({
const memoizedHandleQueryChange = useMemo(() => handleQueryChange, []);
useEffect(() => {
const indexQuery = `source = ${selectedIndex[0]?.label || ''}`;
memoizedHandleQueryChange(indexQuery);
memoizedGetAvailableFields(indexQuery);
}, [selectedIndex, memoizedGetAvailableFields, memoizedHandleQueryChange]);
const [lastFocusedInput, setLastFocusedInput] = useState<'query_area' | 'nlq_input'>('nlq_input');
Expand Down
1 change: 0 additions & 1 deletion public/components/common/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ export const Search = (props: any) => {
setSelectedIndex(reduxIndex);
// sets the editor text and populates sidebar field for a particular index upon initialization
const indexQuery = `source = ${reduxIndex[0].label}`;
handleQueryChange(indexQuery);
getAvailableFields(indexQuery);
}
if (queryRedux.ollyQueryAssistant.length > 0) {
Expand Down

0 comments on commit e200fbe

Please sign in to comment.