Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingrj committed Jan 29, 2019
1 parent e04cb45 commit 3cb1e52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/resolveFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ module.exports = (props, resolveInternal = false) => context => {

const resolveFields = item => {
props.forEach(fieldName => {

// milestone and conversations 'items' field
if (fieldName === 'items') {
item[fieldName].forEach(i => {
if (i.image && isIPFS.ipfsPath(i.image)) {
i.image = url.resolve(ipfsGateway, i.image);
}
})
});
}

// other fields, usually 'image'
Expand Down

0 comments on commit 3cb1e52

Please sign in to comment.