Fixed the exception

pull/1529/head
tidusjar 7 years ago
parent 9117b38758
commit 9e6a7d5a72

@ -3,7 +3,7 @@
@inject ISettingsService<OmbiSettings> Settings @inject ISettingsService<OmbiSettings> Settings
@{ @{
var s = await Settings.GetSettingsAsync(); var s = await Settings.GetSettingsAsync();
var baseUrl = s.BaseUrl; var baseUrl = s?.BaseUrl ?? string.Empty;
if (!baseUrl.EndsWith("/")) if (!baseUrl.EndsWith("/"))
{ {

Loading…
Cancel
Save