Skip to content

Commit

Permalink
fix: 🩹 preview_timestamp to be added only when its available
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nadeem-cs committed Oct 16, 2024
1 parent d8a1480 commit dc01605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export class Stack {
...this.config.live_preview,
live_preview: query.live_preview || 'init',
contentTypeUid: query.contentTypeUid,
entryUid: query.entryUid
entryUid: query.entryUid,
preview_timestamp: query.preview_timestamp || "",
}
this._client.stackConfig.live_preview = livePreviewParams;
}
Expand Down

0 comments on commit dc01605

Please sign in to comment.