Skip to content

Commit c552309

Browse files
partial fix for jupyter-editor issue (#366)
* fix for jupyter-editor issue * more guards
1 parent 208ee86 commit c552309

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/connectTraceToPlot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function connectTraceToPlot(WrappedComponent) {
3636
const fullTrace = fullData[fullTraceIndex] || {};
3737

3838
let getValObject;
39-
if (plotly) {
39+
if (plotly && fullTrace._fullInput) {
4040
/*
4141
* Since fullTrace._fullInput contains the _module.attributes key:
4242
* https://github.com/plotly/plotly.js/blob/70f3f70ec5b306cf74630355676f5e318f685824/src/plot_api/plot_schema.js#L241
@@ -77,6 +77,7 @@ export default function connectTraceToPlot(WrappedComponent) {
7777
this.name = fullTrace.name;
7878
const DEFAULT_FIN_CHART_TRACE_NAME = ' - increasing';
7979
if (
80+
fullTrace.name &&
8081
fullTrace.name.indexOf(DEFAULT_FIN_CHART_TRACE_NAME) &&
8182
!trace.name
8283
) {

0 commit comments

Comments
 (0)