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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form0-core",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -349,7 +349,7 @@ const toSingleChoiceLabel = (field, rawValue) => {
349
349
  context: 'projectDatasetRowValues',
350
350
  });
351
351
  if (labels.length === 0) {
352
- return rawValue;
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 rawValue;
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
- displayValues[field.field_id] = toDisplayValue(field, rawValue);
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);