Skip to content

Commit 0344f3e

Browse files
author
Ali Tahir
committed
Merge branch 'master' of https://github.com/agility/agility-content-fetch-js-sdk into feature/gallery
2 parents 0763536 + 31582e9 commit 0344f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agility/content-fetch",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"description": "JavaScript library for the Agility Fetch API (node and browser)",
55
"main": "dist/agility-content-fetch.node.js",
66
"scripts": {

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function buildRequestUrlPath(config, languageCode) {
22
let apiFetchOrPreview = null;
33

4-
if(config.isPreview) {
4+
if(config.isPreview === true || config.isPreview === 'true') {
55
apiFetchOrPreview = 'preview';
66
} else {
77
apiFetchOrPreview = 'fetch';

0 commit comments

Comments
 (0)