@civicactions/cmsds-open-data-components 4.0.4 → 4.0.5
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 +6 -4
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -6294,7 +6294,7 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
|
|
|
6294
6294
|
if (distribution.data && distribution.data.description) newDescription = distribution.data.description;
|
|
6295
6295
|
else if (dataset.description) newDescription = dataset.description;
|
|
6296
6296
|
}
|
|
6297
|
-
if (description !== newDescription && updateAriaLive) updateAriaLive(newDescription);
|
|
6297
|
+
if (typeof newDescription === "string" && description !== newDescription && updateAriaLive) updateAriaLive(newDescription);
|
|
6298
6298
|
setDescription(newDescription);
|
|
6299
6299
|
}, [
|
|
6300
6300
|
resource,
|
|
@@ -6306,9 +6306,11 @@ const $2bd73bb95b0c04ed$var$DatasetDescription = ({ distribution: distribution,
|
|
|
6306
6306
|
className: "ds-u-measure--wide ds-u-margin-bottom--7",
|
|
6307
6307
|
children: /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6308
6308
|
className: "ds-u-margin-top--0 dc-c-metadata-description",
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6309
|
+
children: typeof description === "string" ? /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
|
|
6310
|
+
dangerouslySetInnerHTML: {
|
|
6311
|
+
__html: (0, $hgUW1$dompurify).sanitize(description)
|
|
6312
|
+
}
|
|
6313
|
+
}) : description
|
|
6312
6314
|
})
|
|
6313
6315
|
});
|
|
6314
6316
|
};
|