Skip to content

Commit

Permalink
fixing histogram mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jan 4, 2024
1 parent 25a48aa commit 75e1f13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export type UnifiedHistogramContainerProps = {
searchSessionId?: UnifiedHistogramRequestContext['searchSessionId'];
requestAdapter?: UnifiedHistogramRequestContext['adapter'];
isChartLoading?: boolean;
table: Datatable;
table?: Datatable;
} & Pick<
UnifiedHistogramLayoutProps,
| 'services'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export const useLensSuggestions = ({
query: {
esql: esqlQuery,
},
table,
};
const sug = lensSuggestionsApi(context, dataView, ['lnsDatatable']) ?? [];
if (sug.length) {
Expand All @@ -123,7 +122,7 @@ export const useLensSuggestions = ({
}
histogramQuery.current = undefined;
return undefined;
}, [currentSuggestion, dataView, query, timeRange, data, table, lensSuggestionsApi]);
}, [currentSuggestion, dataView, query, timeRange, data, lensSuggestionsApi]);

useEffect(() => {
const newSuggestionsDeps = getSuggestionDeps({ dataView, query, columns });
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/unified_histogram/public/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export interface UnifiedHistogramLayoutProps extends PropsWithChildren<unknown>
*/
withDefaultActions?: EmbeddableComponentProps['withDefaultActions'];

table: Datatable;
table?: Datatable;
}

export const UnifiedHistogramLayout = ({
Expand Down

0 comments on commit 75e1f13

Please sign in to comment.