form0-core 0.1.17 → 0.1.18
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.
package/package.json
CHANGED
|
@@ -349,7 +349,7 @@ const toSingleChoiceLabel = (field, rawValue) => {
|
|
|
349
349
|
context: 'projectDatasetRowValues',
|
|
350
350
|
});
|
|
351
351
|
if (labels.length === 0) {
|
|
352
|
-
return
|
|
352
|
+
return undefined;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
return labels.length === 1 ? labels[0] : labels;
|
|
@@ -360,7 +360,7 @@ const toMultiChoiceLabels = (field, rawValue) => {
|
|
|
360
360
|
context: 'projectDatasetRowValues',
|
|
361
361
|
});
|
|
362
362
|
if (labels.length === 0) {
|
|
363
|
-
return
|
|
363
|
+
return undefined;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
return labels;
|
|
@@ -600,7 +600,10 @@ export function projectDatasetRowValues(descriptor, rowValues) {
|
|
|
600
600
|
return;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
|
|
603
|
+
const displayValue = toDisplayValue(field, rawValue);
|
|
604
|
+
if (typeof displayValue !== 'undefined') {
|
|
605
|
+
displayValues[field.field_id] = displayValue;
|
|
606
|
+
}
|
|
604
607
|
|
|
605
608
|
if (field.query_kind === 'scalar') {
|
|
606
609
|
const scalarValue = normalizeScalarValue(field, rawValue);
|