Skip to content

Commit

Permalink
Fix type issue resulting from elastic#193415 & elastic#193791 (elasti…
Browse files Browse the repository at this point in the history
…c#193970)

## Summary
As the title says. Two competing changes made it in to main (elastic#193415 &
elastic#193791), causing a type issue:
https://buildkite.com/elastic/kibana-on-merge/builds/50786#019228ae-4487-45c6-867a-ba0590b1266d

cc: @davismcphee @stratoula
  • Loading branch information
delanni authored Sep 25, 2024
1 parent 475fd6c commit 6c1f18c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const FilterInBtn = ({
}) => {
const context = useContext(UnifiedDataTableContext);
const filteringDisabled =
isPlainRecord && Array.isArray(context.rows[rowIndex]?.flattened[columnId]);
isPlainRecord && Array.isArray(context.getRowByIndex(rowIndex)?.flattened[columnId]);
const buttonTitle = i18n.translate('unifiedDataTable.grid.filterForAria', {
defaultMessage: 'Filter for this {value}',
values: { value: columnId },
Expand Down Expand Up @@ -85,7 +85,7 @@ export const FilterOutBtn = ({
}) => {
const context = useContext(UnifiedDataTableContext);
const filteringDisabled =
isPlainRecord && Array.isArray(context.rows[rowIndex]?.flattened[columnId]);
isPlainRecord && Array.isArray(context.getRowByIndex(rowIndex)?.flattened[columnId]);
const buttonTitle = i18n.translate('unifiedDataTable.grid.filterOutAria', {
defaultMessage: 'Filter out this {value}',
values: { value: columnId },
Expand Down

0 comments on commit 6c1f18c

Please sign in to comment.