-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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.
Line 39 in 5ad6a40
| _handleSelectComponent = (component, key) => { |
_handleSelectComponent = (component, key) => {
component.indexKey = key;
this.setState({stagedComponent: component});
};Line 34 in 5ad6a40
| <Workspace components={components} component={stagedComponent} onCloseProperties={this._handleSelectComponent} /> |
<Workspace components={components} component={stagedComponent} onCloseProperties={this._handleSelectComponent} />atellier/src/PropertiesContainer.js
Line 147 in 5ad6a40
| return this.props.onCloseProperties && this.props.onCloseProperties(null); |
_handleCloseProperties = () => {
return this.props.onCloseProperties && this.props.onCloseProperties(null);
};Metadata
Metadata
Assignees
Labels
No labels