Skip to content

Commit

Permalink
fix: update selected after node update
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Oct 17, 2023
1 parent 37ffe98 commit ece3911
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ port.onMessage.addListener(({ type, payload }) => {
Object.assign(current, payload.node);
resolveEventBubble(current);

// if ($selected?.id === node.id) selected.update((o) => o);

selected.update((o) => o);
return current.invalidate();
}

Expand Down

0 comments on commit ece3911

Please sign in to comment.