The issue is that Atellier's _handleSelectComponent method assumes there's always a component to select, but in case of handling the Workspace's onCloseProperties it's null.
|
_handleSelectComponent = (component, key) => { |
_handleSelectComponent = (component, key) => {
component.indexKey = key;
this.setState({stagedComponent: component});
};
|
<Workspace components={components} component={stagedComponent} onCloseProperties={this._handleSelectComponent} /> |
<Workspace components={components} component={stagedComponent} onCloseProperties={this._handleSelectComponent} />
|
return this.props.onCloseProperties && this.props.onCloseProperties(null); |
_handleCloseProperties = () => {
return this.props.onCloseProperties && this.props.onCloseProperties(null);
};
The issue is that
Atellier's_handleSelectComponentmethod assumes there's always acomponentto select, but in case of handling theWorkspace'sonClosePropertiesit'snull.atellier/src/Atellier.js
Line 39 in 5ad6a40
atellier/src/Atellier.js
Line 34 in 5ad6a40
atellier/src/PropertiesContainer.js
Line 147 in 5ad6a40