Skip to content

Commit 0685ade

Browse files
committed
Correct deleteTrace function
1 parent 37c2563 commit 0685ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PlotlyEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class PlotlyEditor extends Component {
104104
this.props.onDeleteTrace(payload);
105105
}
106106
if (payload.traceIndexes && payload.traceIndexes.length) {
107-
graphDiv.data.splice(payload[0], 1);
107+
graphDiv.data.splice(payload.traceIndexes[0], 1);
108108
if (this.props.onUpdate) {
109109
this.props.onUpdate();
110110
}

0 commit comments

Comments
 (0)