From c27f9c7916809517e2ce8a23ba9777442c2757ff Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Mon, 2 Oct 2023 08:27:37 -0700 Subject: [PATCH] Fallback for empty titles Summary: Some columns set title to an empty string Reviewed By: lblasa Differential Revision: D49826852 fbshipit-source-id: 3661394323dade813295420a1186d9297a8be153 --- .../src/ui/data-table/DataTableWithPowerSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx index 418714f0c..51129d7fb 100644 --- a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx @@ -249,7 +249,7 @@ export function DataTable( continue; } const columnFieldConfig: FieldConfig = { - label: column.title ?? column.key, + label: column.title || column.key, key: column.key, // If no power search config provided we treat every input as a string operators: column.powerSearchConfig?.reduce((res, operatorConfig) => {