diff --git a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx index f3fb46ac8..95b03df1b 100644 --- a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx @@ -124,11 +124,13 @@ export type DataTableColumn = { visible?: boolean; inversed?: boolean; sortable?: boolean; - powerSearchConfig?: { - [K in keyof typeof dataTablePowerSearchOperators]: ReturnType< - (typeof dataTablePowerSearchOperators)[K] - >; - }; + powerSearchConfig?: + | { + [K in keyof typeof dataTablePowerSearchOperators]: ReturnType< + (typeof dataTablePowerSearchOperators)[K] + >; + } + | false; }; export interface TableRowRenderContext { @@ -240,6 +242,9 @@ export function DataTable( const res: PowerSearchConfig = {fields: {}}; for (const column of columns) { + if (column.powerSearchConfig === false) { + continue; + } const columnFieldConfig: FieldConfig = { label: column.title ?? column.key, key: column.key,