diff --git a/static/js/data.js b/static/js/data.js index 51c37645..d7ac3210 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -202,7 +202,7 @@ class excitationBase { if (this.type.Value == 0) { this.type.Value = excitationTypes.Others.Value; } - else (!(this.type & (excitationTypes.Single.Value | excitationTypes.Double.Value))){ + else if (!(this.type & (excitationTypes.Single.Value | excitationTypes.Double.Value))){ this.type.Value = excitationTypes.Single } this.T1 = T1