@vizzly/dashboard 0.15.1 → 0.15.2

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.
@@ -39591,10 +39591,14 @@ var FiltersModal = function FiltersModal(_ref) {
39591
39591
  singular: 'field',
39592
39592
  plural: 'fields'
39593
39593
  },
39594
- listOfFields: humanReadableList([].concat(filter.appliesToFields).map(function (field) {
39595
- var dataSet = find(dataSets, field.dataSetId);
39596
- if (!dataSet) return '';
39597
- return findField(dataSet, field.fieldId).publicName;
39594
+ listOfFields: humanReadableList([].concat(filter.appliesToFields).flatMap(function (field) {
39595
+ try {
39596
+ var dataSet = find(dataSets, field.dataSetId);
39597
+ return [findField(dataSet, field.fieldId).publicName];
39598
+ } catch (e) {
39599
+ logWarning(e);
39600
+ return [];
39601
+ }
39598
39602
  }), true, textOverride),
39599
39603
  numberOfFields: filter.appliesToFields.length,
39600
39604
  filterType: typeToString(filter.type, textOverride)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.15.1",
4
+ "version": "0.15.2",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",
@@ -113,4 +113,4 @@
113
113
  "tslint": "^6.1.3",
114
114
  "typescript": "^4.8.4"
115
115
  }
116
- }
116
+ }