Skip to content

Commit

Permalink
✨ use session id for suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Dec 17, 2020
1 parent 0d389aa commit 928687b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,15 @@ export function SuggestionPanel({
const AutoRefreshExpressionRenderer = useMemo(() => {
const autoRefreshFetch$ = plugins.data.query.timefilter.timefilter.getAutoRefreshFetch$();
return (props: ReactExpressionRendererProps) => (
<ExpressionRendererComponent {...props} searchContext={context} reload$={autoRefreshFetch$} />
<ExpressionRendererComponent
{...props}
searchContext={context}
reload$={autoRefreshFetch$}
searchSessionId={frame.searchSessionId}
/>
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [plugins.data.query.timefilter.timefilter, context]);
}, [plugins.data.query.timefilter.timefilter, context, frame.searchSessionId]);

const [lastSelectedSuggestion, setLastSelectedSuggestion] = useState<number>(-1);

Expand Down

0 comments on commit 928687b

Please sign in to comment.