mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
fix: datatable crash when column is empty string (#17303)
* fix: datatable crash when column is empty string * typo
This commit is contained in:
@@ -135,7 +135,8 @@ export const useTableColumns = (
|
||||
key =>
|
||||
({
|
||||
accessor: row => row[key],
|
||||
Header: key,
|
||||
// When the key is empty, have to give a string of length greater than 0
|
||||
Header: key || ' ',
|
||||
Cell: ({ value }) => {
|
||||
if (value === true) {
|
||||
return BOOL_TRUE_DISPLAY;
|
||||
|
||||
Reference in New Issue
Block a user