Skip to content

Commit

Permalink
fixing coordinate range that cannot be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Jul 9, 2024
1 parent 038e4d1 commit 834a4c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/components/general/NetPyNECoordsRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,17 @@ export default class NetPyNECoordsRange extends Component {
this.setState({ rangeType})
}

//preConds: pop, cellType, cellModel, x, y, z, xnorm, ynorm, znorm
// preConds: pop, cellType, cellModel, x, y, z, xnorm, ynorm, znorm
handleCoordParamChange(index, newValue) {
const {
model,
conds,
name,
} = this.props;

if (Object.is(newValue, NaN)) {
newValue = 0;
}

if (newValue === '' || (/^\d+$/.test(newValue))) {
if (this.state.rangeType && this.state.rangeType.length > 0)
Expand Down

0 comments on commit 834a4c1

Please sign in to comment.