File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
components/VisualizationViewer Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ class VisualizationViewer extends BaseComponent {
64
64
const LayoutClass = LayoutClasses [ method ] ;
65
65
this . objects [ key ] = new LayoutClass ( key , key => this . objects [ key ] , children ) ;
66
66
} else if ( method in TracerClasses ) {
67
- const [ title ] = args ;
68
- const TracerClass = TracerClasses [ method ] ;
67
+ const className = method ;
68
+ const [ title = className ] = args ;
69
+ const TracerClass = TracerClasses [ className ] ;
69
70
this . objects [ key ] = new TracerClass ( key , key => this . objects [ key ] , title ) ;
70
71
} else {
71
72
this . objects [ key ] [ method ] ( ...args ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
2
2
import { Renderer } from '/core/renderers' ;
3
3
4
4
class Tracer {
5
- constructor ( key , getObject , title = this . constructor . name ) {
5
+ constructor ( key , getObject , title ) {
6
6
this . key = key ;
7
7
this . getObject = getObject ;
8
8
this . title = title ;
You can’t perform that action at this time.
0 commit comments