From ea635a6979acff613eb9aceb9ec6aa81bb3368eb Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Fri, 9 Nov 2018 11:20:19 +0100 Subject: [PATCH] mol-state: fix root node update --- src/mol-state/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mol-state/state.ts b/src/mol-state/state.ts index 1d2b4cebe..70a40a532 100644 --- a/src/mol-state/state.ts +++ b/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; -- GitLab