1
0
Fork 0
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:
SystemsPurge 2024-10-22 14:43:21 +02:00
parent 21bf384e6e
commit e4fe8037d8
No known key found for this signature in database

View file

@ -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;
}