From ffc83fc9e0d034b3ef4d8351dbe845a310ec6bf1 Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Fri, 18 Jun 2021 15:30:12 +1200 Subject: [PATCH] fix(GDoc): Use isA instead of isParagraph --- src/codecs/gdoc/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codecs/gdoc/index.ts b/src/codecs/gdoc/index.ts index f6bba3db7..03ac225f9 100644 --- a/src/codecs/gdoc/index.ts +++ b/src/codecs/gdoc/index.ts @@ -184,7 +184,7 @@ async function decodeDocument( const block = await decodeParagraph(para, lists) // Ignore empty paragraphs - if (schema.isParagraph(block)) { + if (schema.isA('Paragraph', block)) { const { content } = block if ( content.length === 0 || @@ -197,7 +197,7 @@ async function decodeDocument( // If this para has the `Title` style then use it's content // as the title of the article (overrides doc.title) - if (schema.isParagraph(block) && para.paragraphStyle) { + if (schema.isA('Paragraph', block) && para.paragraphStyle) { const styleType = para.paragraphStyle.namedStyleType if (styleType && styleType === 'TITLE') { const { content } = block