Skip to content

Commit 4cb04a0

Browse files
committed
Fixed type selection on ConnectivityRules
1 parent 6111173 commit 4cb04a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/components/definition/subcellConnectivity/NetPyNESubcellsConnectivityRule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class NetPyNESubCellsConnectivityRule extends React.Component {
3232
sectionId: 'General',
3333
errorMessage: undefined,
3434
errorDetails: undefined,
35-
type: 'uniform',
35+
type: props.type,
3636
coord: '',
3737
};
3838
}
@@ -105,7 +105,7 @@ export default class NetPyNESubCellsConnectivityRule extends React.Component {
105105
}
106106

107107
UNSAFE_componentWillReceiveProps (nextProps) {
108-
this.setState({ currentName: nextProps.name });
108+
this.setState({ currentName: nextProps.name, type: nextProps.model.density });
109109
}
110110

111111
handleDensity (value) {

0 commit comments

Comments
 (0)