Skip to content

Commit

Permalink
Use JObject.FromObject instead of JsonSerializer.SerializeToNode wher…
Browse files Browse the repository at this point in the history
…e applicable.
  • Loading branch information
sarahelsaig committed Apr 2, 2024
1 parent 97568eb commit e36133d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.BaseTheme/Controllers/AdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task<IActionResult> Index()
editor.PartFieldDefinition = new ContentPartFieldDefinition(
new ContentFieldDefinition(nameof(BaseThemeSettingsPart.Icon)),
nameof(BaseThemeSettingsPart.Icon),
(JsonObject)JsonSerializer.SerializeToNode(new Dictionary<string, object>
JObject.FromObject(new Dictionary<string, object>
{
[nameof(MediaFieldSettings)] = new MediaFieldSettings { Multiple = false },
}))
Expand Down

0 comments on commit e36133d

Please sign in to comment.