File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/trace-viewer/src/ui Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export const WorkbenchLoader: React.FunctionComponent<{
8787 connect ( {
8888 onEvent ( method : string , params ?: any ) {
8989 if ( method === 'loadTrace' ) {
90- setTraceURLs ( [ params ! . url ] ) ;
90+ setTraceURLs ( params ! . url ? [ params ! . url ] : [ ] ) ;
9191 setDragOver ( false ) ;
9292 setProcessingErrorMessage ( null ) ;
9393 }
@@ -171,7 +171,7 @@ export const WorkbenchLoader: React.FunctionComponent<{
171171 < div style = { { maxWidth : 400 } } > Playwright Trace Viewer is a Progressive Web App, it does not send your trace anywhere,
172172 it opens it locally.</ div >
173173 </ div > }
174- { isServer && ( ! traceURLs . length || processingErrorMessage ) && < div className = 'drop-target' >
174+ { isServer && ! traceURLs . length && < div className = 'drop-target' >
175175 < div className = 'title' > Select test to see the trace</ div >
176176 </ div > }
177177 { dragOver && < div className = 'drop-target'
You can’t perform that action at this time.
0 commit comments