Skip to content

Commit

Permalink
fix type issue resulting from #193415 & #193791
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Sep 25, 2024
1 parent e92c905 commit 43a4501
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 43a4501

Please sign in to comment.