mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-23 08:43:18 +02:00
reset buttons for all graphics (#230)
* reset buttons for all graphics * resetting * . * build * build
This commit is contained in:
@@ -3,7 +3,7 @@ var React = require("react");
|
||||
class SliderSet extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.options = props.options || [];
|
||||
this.setOptions(props.options);
|
||||
}
|
||||
|
||||
render(props) {
|
||||
@@ -35,7 +35,7 @@ class SliderSet extends React.Component {
|
||||
}
|
||||
|
||||
setOptions(options, labels) {
|
||||
this.options = options;
|
||||
this.options = options || [];
|
||||
this.forceUpdate();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user