openatc-components 0.1.104 → 0.1.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -540,12 +540,16 @@ export default {
540
540
  patternCommit (manualInfo) {
541
541
  let that = this
542
542
  let control = {}
543
+ if (that.preselectModel === -1) {
544
+ this.$message.error(this.$t('openatccomponents.overview.noselectcontroltip'))
545
+ return
546
+ }
543
547
  that.ParamsMode.forEach(function (value, key, map) {
544
548
  if (that.controlData.mode === value) {
545
549
  control.mode = key
546
550
  }
547
551
  })
548
- control.control = that.preselectModel === -1 ? that.currModel : that.preselectModel
552
+ control.control = that.preselectModel
549
553
  // control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
550
554
  control.terminal = Number(manualInfo.tempPatternid)
551
555
  control.delay = Number(manualInfo.tempDelay)