dtable-ui-component 0.3.8-alpha2 → 0.3.8-alpha3
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.
|
@@ -139,6 +139,10 @@ var RowExpandFormulaFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
139
139
|
var array_type = data.array_type,
|
|
140
140
|
result_type = data.result_type;
|
|
141
141
|
|
|
142
|
+
if (!value) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
|
|
142
146
|
if (Array.isArray(value)) {
|
|
143
147
|
value = getFormulaArrayValue(value);
|
|
144
148
|
|
|
@@ -152,7 +156,7 @@ var RowExpandFormulaFormatter = /*#__PURE__*/function (_React$Component) {
|
|
|
152
156
|
});
|
|
153
157
|
}
|
|
154
158
|
} else {
|
|
155
|
-
if (result_type === FORMULA_RESULT_TYPE.DATE) {
|
|
159
|
+
if (result_type === FORMULA_RESULT_TYPE.DATE && typeof value === 'string') {
|
|
156
160
|
value = value.replace('T', ' ').replace('Z', '');
|
|
157
161
|
}
|
|
158
162
|
}
|