Skip to content

Commit

Permalink
fix(alerted-modal): make to fix the type of columnsForWrapTest with s…
Browse files Browse the repository at this point in the history
…tring type
  • Loading branch information
prosdev0107 committed Mar 7, 2022
1 parent 4fe2d85 commit 3419726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/src/components/TableCollection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface TableCollectionProps {
columns: TableInstance['column'][];
loading: boolean;
highlightRowId?: number;
columnsForWrapText?: TableInstance['column'][];
columnsForWrapText?: string[];
}

export const Table = styled.table`
Expand Down Expand Up @@ -311,8 +311,8 @@ export default React.memo(
const columnCellProps = cell.column.cellProps || {};
const isWrapText =
columnsForWrapText &&
columnsForWrapText.includes(cell.column.Header);
console.log(isWrapText);
columnsForWrapText.includes(cell.column.Header as string);

return (
<td
data-test="table-row-cell"
Expand Down

0 comments on commit 3419726

Please sign in to comment.