Commit 3956ffe
Fix issue when clicking prettify when the sandbox contains syntax errors (codesandbox#186)
* Check that newCode is actually defined before switching the output
* Remove console log
* Fix prettier1 parent d0bb090 commit 3956ffe
File tree
2 files changed
+2
-2
lines changed- src/app/components/sandbox/CodeEditor
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
| |||
0 commit comments