mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
fix a bug in edit-config for non-existing startparameterschema
This commit is contained in:
parent
e8139551c0
commit
90becb2257
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ class EditConfigDialog extends React.Component {
|
|||
if (this.props.ics) {
|
||||
let currentIC = this.props.ics.find(ic => ic.id === parseInt(id, 10));
|
||||
if (currentIC) {
|
||||
if (currentIC.startparameterschema.hasOwnProperty('type')) {
|
||||
if (currentIC.startparameterschema !== null && currentIC.startparameterschema.hasOwnProperty('type')) {
|
||||
schema = currentIC.startparameterschema;
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ class EditConfigDialog extends React.Component {
|
|||
if (this.props.ics && this.props.config.icID) {
|
||||
let currentIC = this.props.ics.find(ic => ic.id === parseInt(this.props.config.icID, 10));
|
||||
if (currentIC) {
|
||||
if (currentIC.startparameterschema.hasOwnProperty('type')) {
|
||||
if (currentIC.startparameterschema !== null && currentIC.startparameterschema.hasOwnProperty('type')) {
|
||||
schema = currentIC.startparameterschema;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue