Skip to content

Commit

Permalink
Merge pull request #74 from adnsio/decode-image-url
Browse files Browse the repository at this point in the history
Decode Prismic images URL
angeloashmore authored Dec 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 0503e65 + 7079cba commit 9614614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/normalize.js
Original file line number Diff line number Diff line change
@@ -83,7 +83,8 @@ const normalizeLinkField = (value, linkResolver, generateNodeId) => {
// data is provided on the `localFile` key.
const normalizeImageField = async args => {
const { value, createNode, createNodeId, store, cache, touchNode } = args
const { alt, dimensions, copyright, url, ...extraFields } = value
const { alt, dimensions, copyright, ...extraFields } = value
const url = decodeURIComponent(value.url)

let fileNodeID
const mediaDataCacheKey = `prismic-media-${url}`

0 comments on commit 9614614

Please sign in to comment.