Skip to content

Commit daa47b4

Browse files
committed
Fix State Machine Updates
1 parent 6e22150 commit daa47b4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

client/src/webview/script.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ export function getScript(vscode: any, document: any, window: any) {
227227
if (!showAllDiagnostics && selectedTab === 'diagnostics') updateView();
228228
break;
229229
case 'fsm':
230-
stateMachine = msg.sm as LJStateMachine;
231-
if (selectedTab === 'fsm') updateView();
230+
if (msg.sm && msg.sm !== stateMachine) {
231+
stateMachine = msg.sm as LJStateMachine;
232+
if (selectedTab === 'fsm') updateView();
233+
}
232234
break;
233235
case 'context':
234236
context = msg.context as LJContext;

0 commit comments

Comments
 (0)