Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

Commit

Permalink
chore: Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CMeeg committed Oct 4, 2020
1 parent c5ae614 commit 6ae422a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/GridsomeContentItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class GridsomeContentItem extends ContentItem {
fieldName,
assets: field.images
};

node.richTextFields.push(richTextField);

this.addField(node, fieldName, html);
Expand Down
7 changes: 3 additions & 4 deletions src/KenticoKontentSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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: {
Expand All @@ -282,7 +281,7 @@ class KenticoKontentSource {
size: null,
url: asset.url,
width: asset.width,
height: asset.height,
height: asset.height
},
name: null,
type: null,
Expand Down

0 comments on commit 6ae422a

Please sign in to comment.