mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-10 17:10:14 +01:00
Fix odd-named preset selection via command
This commit is contained in:
parent
d64647280a
commit
a39a1a7cec
@ -140,7 +140,10 @@ class PresetManager {
|
||||
* @param {string} value Preset option value
|
||||
*/
|
||||
selectPreset(value) {
|
||||
$(this.select).find(`option[value=${value}]`).prop('selected', true);
|
||||
const option = $(this.select).filter(function() {
|
||||
return $(this).val() === value;
|
||||
});
|
||||
option.prop('selected', true);
|
||||
$(this.select).val(value).trigger('change');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user