|
|
|
@ -227,10 +227,6 @@ var Layout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
|
|
value: function checkValidation(conf) {
|
|
|
|
|
var conf_obj;
|
|
|
|
|
|
|
|
|
|
if (!conf) {
|
|
|
|
|
conf = this.state.customconf;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
conf_obj = JSON.parse(conf);
|
|
|
|
|
} catch (e) {
|
|
|
|
@ -315,7 +311,7 @@ var Layout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
|
|
}, {
|
|
|
|
|
key: "handleClickLoad",
|
|
|
|
|
value: function handleClickLoad() {
|
|
|
|
|
this.checkValidation();
|
|
|
|
|
this.checkValidation(this.state.customconf);
|
|
|
|
|
|
|
|
|
|
if (this.props.onClickLoadCustomConf) {
|
|
|
|
|
this.props.onClickLoadCustomConf(this.state.customconf_ready);
|
|
|
|
|