ソースを参照

mol-state: fix root node update

David Sehnal 6 年 前
コミット
ea635a6979
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/mol-state/state.ts

+ 1 - 1
src/mol-state/state.ts

@@ -276,7 +276,7 @@ namespace State {
             const current = cells.get(currentRef)!;
             const oldParams = oldTree.getValue(currentRef)!.params;
 
-            const updateKind = current.status === 'ok'
+            const updateKind = current.status === 'ok' || current.ref === ctx.tree.rootRef
                 ? await updateObject(ctx, currentRef, transform.transformer, parent, current.obj!, oldParams, transform.params)
                 : Transformer.UpdateResult.Recreate;