Skip to content

Commit e200fbe

Browse files
opensearch-trigger-bot[bot]github-actions[bot]Adam Tackett
authored
fix traces redirection while QA enabled (#2369) (#2374)
(cherry picked from commit 8adb81e) Signed-off-by: Adam Tackett <[email protected]> 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 <[email protected]>
1 parent 25d8f42 commit e200fbe

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

public/components/common/search/query_area.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export function QueryArea({
3838
const memoizedHandleQueryChange = useMemo(() => handleQueryChange, []);
3939
useEffect(() => {
4040
const indexQuery = `source = ${selectedIndex[0]?.label || ''}`;
41-
memoizedHandleQueryChange(indexQuery);
4241
memoizedGetAvailableFields(indexQuery);
4342
}, [selectedIndex, memoizedGetAvailableFields, memoizedHandleQueryChange]);
4443
const [lastFocusedInput, setLastFocusedInput] = useState<'query_area' | 'nlq_input'>('nlq_input');

public/components/common/search/search.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ export const Search = (props: any) => {
259259
setSelectedIndex(reduxIndex);
260260
// sets the editor text and populates sidebar field for a particular index upon initialization
261261
const indexQuery = `source = ${reduxIndex[0].label}`;
262-
handleQueryChange(indexQuery);
263262
getAvailableFields(indexQuery);
264263
}
265264
if (queryRedux.ollyQueryAssistant.length > 0) {

0 commit comments

Comments
 (0)