mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 07:43:41 +08:00 
			
		
		
		
	fix: fix AutomaticDisableChannelEnabled option not ignored (close #217)
This commit is contained in:
		@@ -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);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user