Skip to content

Commit e877e79

Browse files
committed
Fix trace Delete typo
1 parent 0548c07 commit e877e79

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
@@ -106,7 +106,7 @@ class PlotlyEditor extends Component {
106106
this.props.onDeleteTrace(payload);
107107
}
108108
if (payload.traceIndexes && payload.traceIndexes.length) {
109-
graphDiv.data.splice(payload[0], 1);
109+
graphDiv.data.splice(payload.traceIndexes[0], 1);
110110
if (this.props.onUpdate) {
111111
this.props.onUpdate();
112112
}

0 commit comments

Comments
 (0)