mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix odd-named preset selection via command
This commit is contained in:
@ -140,7 +140,10 @@ class PresetManager {
|
|||||||
* @param {string} value Preset option value
|
* @param {string} value Preset option value
|
||||||
*/
|
*/
|
||||||
selectPreset(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');
|
$(this.select).val(value).trigger('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user