diff --git a/src/plugins/enums.ts b/src/plugins/enums.ts index b746a2d..48fd31d 100644 --- a/src/plugins/enums.ts +++ b/src/plugins/enums.ts @@ -9,7 +9,7 @@ export const BackgroundSource: EnumDecl<'BackgroundSource'> = enum_('BackgroundS NONE: [4, 'none'], }); -export type BlockType = EnumValue<'Blocktype'>; +export type BlockType = EnumValue<'BlockType'>; export const BlockType: EnumDecl<'BlockType'> = enum_('BlockType', { UNDEFINED: [-1, 'undefined'], NAVIGATION: [1, 'navigation'], diff --git a/src/plugins/util.content.ts b/src/plugins/util.content.ts index 706215c..2f0c344 100644 --- a/src/plugins/util.content.ts +++ b/src/plugins/util.content.ts @@ -19,7 +19,7 @@ export const getFocalPoint = (media: Node) => { export const getAltText = (ctx: Context, image: Node): string => { // Content items for image blocks were populated with an altText value with a migration. - // See CMS-33805. for those, the content item value should always be used even if it is empty. + // See CMS-33805. For those, the content item value should always be used even if it is empty. const blockType = ctx.resolve(['blockType']); if (!blockType.isMissing() && blockType.asNumber() === BlockType.IMAGE.code) { const altText = image.path(['altText']);