Skip to content
Snippets Groups Projects
Commit ea635a69 authored by David Sehnal's avatar David Sehnal
Browse files

mol-state: fix root node update

parent 30ae92e1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment