@civicactions/cmsds-open-data-components 3.1.3-alpha.dd2 → 3.1.3-alpha.dd4
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 +4 -4
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1768,7 +1768,7 @@ const $96d341d082bffec5$var$TruncatedResizeableTHead = ({ table: table, sortElem
|
|
|
1768
1768
|
header: header,
|
|
1769
1769
|
sortElement: sortElement,
|
|
1770
1770
|
setAriaLiveFeedback: setAriaLiveFeedback
|
|
1771
|
-
}))
|
|
1771
|
+
}, header.id + "_dataTableResize"))
|
|
1772
1772
|
}, headerGroup.id))
|
|
1773
1773
|
});
|
|
1774
1774
|
};
|
|
@@ -2781,7 +2781,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
|
|
|
2781
2781
|
const mediaType = dist.data.mediaType.split("/");
|
|
2782
2782
|
if (mediaType.length && mediaType[1]) return mediaType[1].toLowerCase();
|
|
2783
2783
|
}
|
|
2784
|
-
if (dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
|
|
2784
|
+
if (dist.data["%Ref:downloadURL"] && dist.data["%Ref:downloadURL"].length && dist.data["%Ref:downloadURL"][0].data) {
|
|
2785
2785
|
if (dist.data["%Ref:downloadURL"][0].data.mimeType) {
|
|
2786
2786
|
const mimeType = dist.data["%Ref:downloadURL"][0].data.mimeType.split("/");
|
|
2787
2787
|
if (mimeType.length && mimeType[1]) return mimeType[1].toLowerCase();
|
|
@@ -3164,7 +3164,7 @@ const $6012b86ffcaf3f71$var$DataDictionary = ({ datasetDictionaryEndpoint: datas
|
|
|
3164
3164
|
})}`).then((res)=>res.json());
|
|
3165
3165
|
}
|
|
3166
3166
|
});
|
|
3167
|
-
const datasetDictionary = data && data.data && data.data.fields.length ? data.data.fields : null;
|
|
3167
|
+
const datasetDictionary = data && data.data && data.data.fields && data.data.fields.length ? data.data.fields : null;
|
|
3168
3168
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$Fragment), {
|
|
3169
3169
|
children: [
|
|
3170
3170
|
/*#__PURE__*/ (0, $hgUW1$jsx)("h2", {
|
|
@@ -3247,7 +3247,7 @@ const $a0f13962e513caa1$var$Dataset = ({ id: id, rootUrl: rootUrl, additionalPar
|
|
|
3247
3247
|
const siteWideDataDictionary = dataDictionaryUrl ? $a0f13962e513caa1$var$getDataDictionary(rootUrl + dataDictionaryUrl, additionalParams).dataDictionary : null;
|
|
3248
3248
|
// compare schema fields with siteWideDataDictionary to display commonalities for now
|
|
3249
3249
|
// until dataset level data dictionaries are implemented
|
|
3250
|
-
const datasetSitewideDictionary = siteWideDataDictionary && resource && resource.schema[distribution.identifier] ? siteWideDataDictionary.data.fields.filter((field)=>{
|
|
3250
|
+
const datasetSitewideDictionary = siteWideDataDictionary && siteWideDataDictionary.data && siteWideDataDictionary.data.fields && resource && resource.schema[distribution.identifier] ? siteWideDataDictionary.data.fields.filter((field)=>{
|
|
3251
3251
|
return Object.keys(resource.schema[distribution.identifier].fields).indexOf(field.name) !== -1;
|
|
3252
3252
|
}) : null;
|
|
3253
3253
|
(0, $hgUW1$useEffect)(()=>{
|