@civicactions/cmsds-open-data-components 3.1.0-alpha.3 → 3.1.0-alpha.4

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/dist/main.js CHANGED
@@ -803,7 +803,7 @@ function $eff7d34c30f5a0fc$export$959638e8dca60ce6(facets) {
803
803
  ];
804
804
  });
805
805
  // sort facets descending by int value, put non int last
806
- facetObj.keyword.sort((a, b)=>{
806
+ if (facetObj.keyword) facetObj.keyword.sort((a, b)=>{
807
807
  if (Number(a.name) && Number(b.name)) return Number(b.name) - Number(a.name);
808
808
  });
809
809
  return facetObj;
@@ -2174,7 +2174,7 @@ const $bef7bff2823feea2$var$QueryTitle = ({ conditions: conditions , schema: sch
2174
2174
  children: "Add a filter"
2175
2175
  });
2176
2176
  function formatValue(text, property) {
2177
- if (customColumns.length > 0) {
2177
+ if (customColumns && customColumns.length > 0) {
2178
2178
  let newValue = text;
2179
2179
  let customColumn = customColumns.find((c)=>c.accessor === property);
2180
2180
  if (customColumn && customColumn.cell) return customColumn.cell({