Skip to content

Commit a9751fe

Browse files
committed
Remove noShame function
1 parent 27fb582 commit a9751fe

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/PlotlyEditor.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import DefaultEditor from './DefaultEditor';
22
import PropTypes from 'prop-types';
33
import React, {Component} from 'react';
44
import {bem} from './lib';
5-
import {noShame, maybeClearAxisTypes} from './shame';
5+
import {maybeClearAxisTypes} from './shame';
66
import {EDITOR_ACTIONS} from './lib/constants';
77
import isNumeric from 'fast-isnumeric';
88
import nestedProperty from 'plotly.js/src/lib/nested_property';
@@ -11,8 +11,6 @@ class PlotlyEditor extends Component {
1111
constructor(props, context) {
1212
super(props, context);
1313

14-
noShame({plotly: this.props.plotly});
15-
1614
// we only need to compute this once.
1715
if (this.props.plotly) {
1816
this.plotSchema = this.props.plotly.PlotSchema.get();

src/shame.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
/*
22
* DELETE THIS FILE. EVERYTHING NEEDS TO FIND A HOME.
33
*/
4-
import {list, getFromId} from 'plotly.js/src/plots/cartesian/axis_ids';
4+
import {getFromId} from 'plotly.js/src/plots/cartesian/axis_ids';
55
import nestedProperty from 'plotly.js/src/lib/nested_property';
66

7-
export function noShame(opts) {
8-
if (opts.plotly && !opts.plotly.Axes) {
9-
opts.plotly.Axes = {list};
10-
}
11-
}
7+
128

139
// Temporary fix for:
1410
// https://github.com/plotly/react-plotly.js-editor/issues/103

0 commit comments

Comments
 (0)