diff --git a/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx b/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx index 0307ff97..2d73fa79 100644 --- a/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx +++ b/ShadowEditor.Web/src/editor2/assets/window/EditWindow.jsx @@ -9,12 +9,6 @@ class EditWindow extends React.Component { constructor(props) { super(props); - this.type = null; - this.typeName = null; - this.data = null; - this.saveUrl = null; - this.callback = null; - this.state = { categories: null, categoryID: null, @@ -29,12 +23,6 @@ class EditWindow extends React.Component { const { type, typeName, data, saveUrl, callback } = this.props; const { categories, categoryID } = this.state; - this.type = type; - this.typeName = typeName; - this.data = data; - this.saveUrl = saveUrl; - this.callback = callback; - return { var options = { @@ -85,7 +63,7 @@ class EditWindow extends React.Component { }); this.setState({ categories: options, - categoryID: this.data.CategoryID, + categoryID: data.CategoryID, }); }); }