Skip to content

Commit

Permalink
Merge pull request #378 from NDLANO/add-image-metadata-for-new-blocks
Browse files Browse the repository at this point in the history
Adds missing images to regler for bruk
  • Loading branch information
gunnarvelle authored Nov 2, 2023
2 parents 6612350 + 3448ee3 commit e8cf80c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/utils/toArticleMetaData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ export const toArticleMetaData = (
}
break;
}
case 'contact-block':
case 'campaign-block':
if (curr.data.image) {
imageMetaData(curr.data.image, acc);
}
break;
case 'key-figure':
case 'blog-post':
if (curr.data.metaImage) {
imageMetaData(curr.data.metaImage, acc);
}
break;
}
return acc;
},
Expand Down

0 comments on commit e8cf80c

Please sign in to comment.