-
Notifications
You must be signed in to change notification settings - Fork 33
Closing the props pane triggers "Uncaught TypeError: Cannot set property 'indexKey' of null" #47
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
Type
Fields
Give feedbackNo fields configured for issues without a type.