Skip to content

Commit 2526a69

Browse files
committed
fix: 🩹 preview_timestamp to be added only when its available
Preview timestamp doesnt clear when user switches back to LP from Timeline Preview. To reset it, we add preview_timestamp only when its available in query.
1 parent c90bd75 commit 2526a69

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)