Skip to content

Commit d34a184

Browse files
authored
Merge pull request #60 from contentstack/fix/DX-1483
fix: preview_timestamp to be added only when its available
2 parents 8d27df0 + 2526a69 commit d34a184

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/stack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ export class Stack {
149149
...this.config.live_preview,
150150
live_preview: query.live_preview || 'init',
151151
contentTypeUid: query.contentTypeUid,
152-
entryUid: query.entryUid
152+
entryUid: query.entryUid,
153+
preview_timestamp: query.preview_timestamp || "",
153154
}
154155
this._client.stackConfig.live_preview = livePreviewParams;
155156
}

0 commit comments

Comments
 (0)