mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Fixed inverted condition
Signed-off-by: SystemsPurge <naktiyoussef@proton.me>
This commit is contained in:
parent
21bf384e6e
commit
e4fe8037d8
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class EditConfigDialog extends React.Component {
|
|||
if (this.state.icID !== '' && this.props.config.icID !== parseInt(this.state.icID)) {
|
||||
data.icID = parseInt(this.state.icID, 10);
|
||||
}
|
||||
if (Object.keys(this.state.startParameters).length === 0 && this.state.startParameters.constructor === Object &&
|
||||
if (Object.keys(this.state.startParameters).length !== 0 && this.state.startParameters.constructor === Object &&
|
||||
JSON.stringify(this.props.config.startParameters) !== JSON.stringify(this.state.startParameters)) {
|
||||
data.startParameters = this.state.startParameters;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue