Fallback for empty titles
Summary: Some columns set title to an empty string Reviewed By: lblasa Differential Revision: D49826852 fbshipit-source-id: 3661394323dade813295420a1186d9297a8be153
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3c09ac8b2b
commit
c27f9c7916
@@ -249,7 +249,7 @@ export function DataTable<T extends object>(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const columnFieldConfig: FieldConfig = {
|
const columnFieldConfig: FieldConfig = {
|
||||||
label: column.title ?? column.key,
|
label: column.title || column.key,
|
||||||
key: column.key,
|
key: column.key,
|
||||||
// If no power search config provided we treat every input as a string
|
// If no power search config provided we treat every input as a string
|
||||||
operators: column.powerSearchConfig?.reduce((res, operatorConfig) => {
|
operators: column.powerSearchConfig?.reduce((res, operatorConfig) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user