@mjhls/mjh-framework 1.0.179 → 1.0.181

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/index.js CHANGED
@@ -29478,7 +29478,7 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
29478
29478
  subTaxonomies={props.subTaxonomies}
29479
29479
  />
29480
29480
  */
29481
- if (subTaxonomies.length === 0) {
29481
+ if (subTaxonomies.length === 0 && parentTaxonomy) {
29482
29482
  if (parentTaxonomy.identifier == exclude) {
29483
29483
  return '';
29484
29484
  }
@@ -30167,7 +30167,8 @@ Sample usage
30167
30167
  var RelatedContent = function RelatedContent(props) {
30168
30168
  var client = props.client,
30169
30169
  dataRecord = props.dataRecord,
30170
- _props$defaultImage = props.defaultImage;
30170
+ _props$defaultImage = props.defaultImage,
30171
+ defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
30171
30172
 
30172
30173
  var builder = imageUrlBuilder(client);
30173
30174
  function urlFor(source) {
@@ -30196,7 +30197,7 @@ var RelatedContent = function RelatedContent(props) {
30196
30197
  'figure',
30197
30198
  null,
30198
30199
  React__default.createElement('img', {
30199
- src: urlFor(article.thumbnail.asset).width(500).url(),
30200
+ src: article.thumbnail ? urlFor(article.thumbnail.asset).width(500).url() : defaultImage,
30200
30201
  alt: article.title
30201
30202
  })
30202
30203
  ),