Skip to content

Commit

Permalink
Fix eagerly executed task in CustomSettingService (#15942)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros authored May 2, 2024
1 parent abf356d commit 097a053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public CustomSettingsService(
_httpContextAccessor = httpContextAccessor;
_authorizationService = authorizationService;
_contentDefinitionManager = contentDefinitionManager;
_settingsTypes = new Lazy<Task<IDictionary<string, ContentTypeDefinition>>>(GetContentTypeAsync());
_settingsTypes = new Lazy<Task<IDictionary<string, ContentTypeDefinition>>>(GetContentTypeAsync);
}

public async Task<IEnumerable<string>> GetAllSettingsTypeNamesAsync()
Expand Down

0 comments on commit 097a053

Please sign in to comment.