Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benjick committed Feb 20, 2020
1 parent 49e80d2 commit e02588e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vsf-storyblok-extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = ({ config, db }) => {
if (hits.total === 0) {
throw new Error('Missing story')
}
let story = hits.hits[0]._source
const story = hits.hits[0]._source
if (typeof story.content === 'string') {
story.content = JSON.parse(story.content)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
},
url () {
const formatUrl = url => this.isExternal ? url : (`/${url}`).replace(/^\/+/, '/')
let url = formatUrl(this.link.cached_url || this.link.url)
const url = formatUrl(this.link.cached_url || this.link.url)
const addStoreCode = get(config, 'storyblok.settings.appendStoreCodeFromHeader')
if (addStoreCode && this.storeCodeFromHeader && url.startsWith(`/${this.storeCodeFromHeader}/`)) {
return url.replace(`/${this.storeCodeFromHeader}/`, '/')
Expand Down

0 comments on commit e02588e

Please sign in to comment.