mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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 =>
|
key =>
|
||||||
({
|
({
|
||||||
accessor: row => row[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 }) => {
|
Cell: ({ value }) => {
|
||||||
if (value === true) {
|
if (value === true) {
|
||||||
return BOOL_TRUE_DISPLAY;
|
return BOOL_TRUE_DISPLAY;
|
||||||
|
|||||||
Reference in New Issue
Block a user