File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -247,12 +247,12 @@ class Editor extends React.Component {
247247 ) ;
248248 }
249249
250- if ( this . props . consoleEvents . length !== prevProps . consoleEvents . length ) {
251- if ( this . props . runtimeErrorWarningVisible ) {
252- // todo here, need to select the right file
253-
250+ if ( this . props . runtimeErrorWarningVisible ) {
251+ if ( this . props . consoleEvents . length !== prevProps . consoleEvents . length ) {
254252 this . props . consoleEvents . forEach ( ( consoleEvent ) => {
255253 if ( consoleEvent . method === 'error' ) {
254+ // It doesn't work if you create a new Error, but this works
255+ // LOL
256256 const errorObj = { stack : consoleEvent . data [ 0 ] } ;
257257 StackTrace . fromError ( errorObj ) . then ( ( stackLines ) => {
258258 this . props . expandConsole ( ) ;
You can’t perform that action at this time.
0 commit comments