From 6ae422a4a668d56e0c43b0f51ec84354d89ea51b Mon Sep 17 00:00:00 2001 From: Chris Meagher Date: Sun, 4 Oct 2020 23:02:44 +0100 Subject: [PATCH] chore: Fix linting issues --- src/GridsomeContentItem.js | 2 +- src/KenticoKontentSource.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/GridsomeContentItem.js b/src/GridsomeContentItem.js index 136879b..556414b 100644 --- a/src/GridsomeContentItem.js +++ b/src/GridsomeContentItem.js @@ -200,7 +200,7 @@ class GridsomeContentItem extends ContentItem { fieldName, assets: field.images }; - + node.richTextFields.push(richTextField); this.addField(node, fieldName, html); diff --git a/src/KenticoKontentSource.js b/src/KenticoKontentSource.js index 8095ac4..659be2c 100644 --- a/src/KenticoKontentSource.js +++ b/src/KenticoKontentSource.js @@ -248,9 +248,8 @@ class KenticoKontentSource { assetCollection.addNode(asset); } else if (existingNode.name === null) { + // In case the asset was previously created as rich text asset - // in case the asset was previously created as rich text asset - this.logger.log('Updating Gridsome node for asset %o', asset); existingNode.name = asset.name; @@ -272,7 +271,7 @@ class KenticoKontentSource { for (const asset of assets) { const id = asset.url; - const existingNode = assetCollection.findNode({id}); + const existingNode = assetCollection.findNode({ id }); if (existingNode === null) { const transformedAsset = { contract: { @@ -282,7 +281,7 @@ class KenticoKontentSource { size: null, url: asset.url, width: asset.width, - height: asset.height, + height: asset.height }, name: null, type: null,