diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx index d760250cf94..5af042fd449 100644 --- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx +++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx @@ -1,12 +1,12 @@ -import DataGrid, { Column } from 'react-data-grid' import * as Tooltip from '@radix-ui/react-tooltip' import { SupaRow, SupaTable } from 'components/grid' -import { IconKey } from 'ui' +import { COLUMN_MIN_WIDTH } from 'components/grid/constants' import { ESTIMATED_CHARACTER_PIXEL_WIDTH, getColumnDefaultWidth, } from 'components/grid/utils/gridColumns' -import { COLUMN_MIN_WIDTH } from 'components/grid/constants' +import DataGrid, { Column } from 'react-data-grid' +import { IconKey } from 'ui' export interface SelectorGridProps { table: SupaTable @@ -40,7 +40,7 @@ const columnRender = (name: string, isPrimaryKey = false) => { ) } -const formatter = (column: string, row: any) => { +const formatter = (column: string, row: SupaRow) => { const formattedValue = typeof row[column] === 'object' ? JSON.stringify(row[column]) : row[column] return (