From 186b3573e34ba8a459caea2d29e6a4e02c58e46b Mon Sep 17 00:00:00 2001 From: yk Date: Tue, 4 Jun 2024 20:43:12 +0300 Subject: [PATCH] fix serialization issue with stj --- .../OrchardCore.Placements/Models/PlacementsDocument.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Placements/Models/PlacementsDocument.cs b/src/OrchardCore.Modules/OrchardCore.Placements/Models/PlacementsDocument.cs index 5ceab7e13c9..b38895197e7 100644 --- a/src/OrchardCore.Modules/OrchardCore.Placements/Models/PlacementsDocument.cs +++ b/src/OrchardCore.Modules/OrchardCore.Placements/Models/PlacementsDocument.cs @@ -7,6 +7,6 @@ namespace OrchardCore.Placements.Models { public class PlacementsDocument : Document { - public Dictionary Placements { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase); + public Dictionary Placements { get;init; } = new(StringComparer.OrdinalIgnoreCase); } }