浏览代码

Ensuring that IPostables that are posted as IPostableFragments are updated correctly.

Kenric Nugteren 1 年之前
父节点
当前提交
38dccfc497
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      InABox.Core/Postable/PostResult.cs

+ 4 - 0
InABox.Core/Postable/PostResult.cs

@@ -53,6 +53,10 @@ namespace InABox.Core
                 fragmentsList = new List<IPostableFragment<TPostable>>();
                 fragments[type] = fragmentsList;
             }
+            if(fragment is IPostable postableFragment)
+            {
+                postableFragment.Post();
+            }
             fragmentsList.Add(fragment);
         }
     }