Преглед на файлове

fix: fix AutomaticDisableChannelEnabled option not ignored (close #217)

JustSong преди 2 години
родител
ревизия
bddbf57104
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      web/src/components/OperationSetting.js

+ 0 - 3
web/src/components/OperationSetting.js

@@ -74,9 +74,6 @@ const OperationSetting = () => {
   const submitConfig = async (group) => {
     switch (group) {
       case 'monitor':
-        if (originInputs['AutomaticDisableChannelEnabled'] !== inputs.AutomaticDisableChannelEnabled) {
-          await updateOption('AutomaticDisableChannelEnabled', inputs.AutomaticDisableChannelEnabled);
-        }
         if (originInputs['ChannelDisableThreshold'] !== inputs.ChannelDisableThreshold) {
           await updateOption('ChannelDisableThreshold', inputs.ChannelDisableThreshold);
         }