@homebound/beam 2.374.0 → 2.375.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,7 @@ const mobx_utils_1 = require("mobx-utils");
|
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const index_1 = require("../index");
|
|
10
10
|
const TableState_1 = require("./utils/TableState");
|
|
11
|
+
const utils_1 = require("../../utils");
|
|
11
12
|
/**
|
|
12
13
|
* Creates an `api` handle to drive a `GridTable`.
|
|
13
14
|
*
|
|
@@ -152,7 +153,7 @@ class GridTableApiImpl {
|
|
|
152
153
|
if (!(0, index_1.isJSX)(content))
|
|
153
154
|
return content;
|
|
154
155
|
// Otherwise use the value/sortValue values
|
|
155
|
-
return cell.value ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-";
|
|
156
|
+
return (0, utils_1.isDefined)(cell.value) ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-"; // Do we need the "-" handling unclear if we use it ever
|
|
156
157
|
}
|
|
157
158
|
else {
|
|
158
159
|
// ReactNode
|