Skip to content

Commit 461ce6c

Browse files
committed
web assembly - handle default json
1 parent d2ed4c5 commit 461ce6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RulesEngineEditor/Components/RuleEditor.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@using RulesEngineEditor.Models
77
@using System.Text.Json
88
@using System.Text.Json.Serialization
9+
@using System.Text.Json.Serialization.Metadata
910
@inject RulesEngineEditor.Services.WorkflowService WorkflowService
1011

1112

@@ -95,7 +96,8 @@
9596
//RulesEngine.Models.RuleActions
9697
var actions = JsonSerializer.Deserialize<dynamic>(value, new JsonSerializerOptions
9798
{
98-
Converters = { new DynamicJsonConverter() }
99+
Converters = { new DynamicJsonConverter() },
100+
TypeInfoResolver = new DefaultJsonTypeInfoResolver()
99101
});
100102

101103
RuleActions newActions = new RuleActions();

0 commit comments

Comments
 (0)