Skip to content

Commit ffd408c

Browse files
author
Ives van Hoorne
committed
Fix Monaco undo stack
1 parent f8c13cc commit ffd408c

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/components/CodeEditor/Monaco

1 file changed

+1
-1
lines changed

packages/app/src/app/components/CodeEditor/Monaco/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ class MonacoEditor extends React.Component<Props, State> implements Editor {
14751475
// other clients.
14761476
this.receivingCode = true;
14771477

1478-
if (newCode) {
1478+
if (newCode !== modelInfo.model.getValue(1)) {
14791479
modelInfo.model.setValue(newCode);
14801480
}
14811481

0 commit comments

Comments
 (0)