Skip to content

Commit 2f6e9a4

Browse files
samdentyCompuIves
authored andcommitted
Return the proper eval-result type (#511)
1 parent c24df87 commit 2f6e9a4

File tree

1 file changed

+1
-5
lines changed
  • packages/app/src/app/components/Preview/DevTools/Console

1 file changed

+1
-5
lines changed

packages/app/src/app/components/Preview/DevTools/Console/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ class Console extends React.Component {
5454
const parsedJson = result ? CircularJSON.parse(result) : result;
5555

5656
if (!error) {
57-
if (parsedJson) {
58-
this.addMessage('log', [parsedJson], 'return');
59-
} else {
60-
this.addMessage('log', [undefined], 'return');
61-
}
57+
this.addMessage('log', [parsedJson], 'return');
6258
} else {
6359
this.addMessage('error', [parsedJson]);
6460
}

0 commit comments

Comments
 (0)