diff --git a/Contentstack.Core/ContentstackClient.cs b/Contentstack.Core/ContentstackClient.cs index f22ffb8..d8b949a 100644 --- a/Contentstack.Core/ContentstackClient.cs +++ b/Contentstack.Core/ContentstackClient.cs @@ -118,10 +118,9 @@ public ContentstackClient(IOptions 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) {