From 70c49922b0bcb74a70cece69ac839ecb951d00de Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 29 Feb 2020 00:44:36 -0500 Subject: [PATCH] adjust setting.Value on empty string --- src/App/Utilities/AppHelpers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/Utilities/AppHelpers.cs b/src/App/Utilities/AppHelpers.cs index c039ca7a3..d069f484a 100644 --- a/src/App/Utilities/AppHelpers.cs +++ b/src/App/Utilities/AppHelpers.cs @@ -159,11 +159,12 @@ namespace Bit.App.Utilities { case "baseEnvironmentUrl": var environmentService = ServiceContainer.Resolve("environmentService"); - if(environmentService.BaseUrl != setting.Value) + var settingValue = string.IsNullOrWhiteSpace(setting.Value) ? null : setting.Value; + if(environmentService.BaseUrl != settingValue) { await environmentService.SetUrlsAsync(new Core.Models.Data.EnvironmentUrlData { - Base = string.IsNullOrWhiteSpace(setting.Value) ? null : setting.Value, + Base = settingValue, Api = environmentService.ApiUrl, Identity = environmentService.IdentityUrl, WebVault = environmentService.WebVaultUrl,