Skip to content

Commit

Permalink
Merge pull request #65 from contentstack:development
Browse files Browse the repository at this point in the history
fix: check for LivePreviewConfig Host only when its enabled
  • Loading branch information
nadeem-cs authored Oct 11, 2024
2 parents 2cc4ee1 + 2a34195 commit 3032f08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Contentstack.Core/ContentstackClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ public ContentstackClient(IOptions<ContentstackOptions> options)
this.LivePreviewConfig = new LivePreviewConfig()
{
Enable = false,

};
}
if (this.LivePreviewConfig.Host == null)
if (this.LivePreviewConfig.Host == null && this.LivePreviewConfig.Enable)
{
if (this.LivePreviewConfig.ManagementToken != null)
{
Expand Down

0 comments on commit 3032f08

Please sign in to comment.