Forráskód Böngészése

Fixed bug where some trigger/action types wouldn't be created

Kenric Nugteren 8 hónapja
szülő
commit
9bcba4b98b

+ 1 - 1
prs.shared/Grids/EventEditor/Action Editors/ActionEditors.cs

@@ -68,7 +68,7 @@ public static class EventActionEditors
         where TDataModel : IEventDataModel
     {
         var editorType = GetActionEditorType(action.GetType());
-        if (editorType is null) return false;
+        if (editorType is null) return true;
 
         var editor = (Activator.CreateInstance(editorType) as IEventActionEditor)!;
         return editor.Edit(action, dataModelDefinition);

+ 1 - 1
prs.shared/Grids/EventEditor/TriggerEditors.cs

@@ -65,7 +65,7 @@ public static class EventTriggerEditors
         where TDataModel : IEventDataModel
     {
         var editorType = GetTriggerEditorType(trigger.GetType());
-        if (editorType is null) return false;
+        if (editorType is null) return true;
 
         var editor = (Activator.CreateInstance(editorType) as IEventTriggerEditor)!;
         return editor.Edit(trigger);