mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Don't auto-add boolean provider if there are more than one type in the list
This commit is contained in:
		@@ -73,7 +73,7 @@ export class SlashCommandArgument {
 | 
			
		||||
        this.forceEnum = forceEnum;
 | 
			
		||||
 | 
			
		||||
        // If no enums were set explictly and the type is one where we know possible enum values, we set them here
 | 
			
		||||
        if (!this.enumList.length && this.typeList.includes(ARGUMENT_TYPE.BOOLEAN)) this.enumList = commonEnumProviders.boolean()();
 | 
			
		||||
        if (!this.enumList.length && this.typeList.length === 1 && this.typeList.includes(ARGUMENT_TYPE.BOOLEAN)) this.enumList = commonEnumProviders.boolean()();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user