Skip to content

Commit

Permalink
Revert breakdownField prop change that broke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davismcphee committed Nov 21, 2024
1 parent fe987ea commit 73d31a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/unified_histogram/public/container/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export type UnifiedHistogramApi = {
export const UnifiedHistogramContainer = forwardRef<
UnifiedHistogramApi,
UnifiedHistogramContainerProps
>(({ breakdownField, onBreakdownFieldChange, onVisContextChanged, ...containerProps }, ref) => {
>(({ onBreakdownFieldChange, onVisContextChanged, ...containerProps }, ref) => {
const [layoutProps, setLayoutProps] = useState<LayoutProps>();
const [localStorageKeyPrefix, setLocalStorageKeyPrefix] = useState<string>();
const [stateService, setStateService] = useState<UnifiedHistogramStateService>();
Expand Down Expand Up @@ -158,7 +158,8 @@ export const UnifiedHistogramContainer = forwardRef<
searchSessionId,
requestAdapter,
columns,
breakdownField: breakdownField ?? initialBreakdownField,
breakdownField: initialBreakdownField,
...pick(containerProps, 'breakdownField'),
onBreakdownFieldChange,
});

Expand Down

0 comments on commit 73d31a8

Please sign in to comment.