mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
Add parentheses for clarity
This commit is contained in:
parent
7061753d84
commit
26716686ba
@ -602,7 +602,7 @@ class PresetManager {
|
||||
// pass no arguments to delete current preset
|
||||
async deletePreset(name) {
|
||||
const { preset_names, presets } = this.getPresetList();
|
||||
const value = name ? this.isKeyedApi() ? this.findPreset(name) : name : this.getSelectedPreset();
|
||||
const value = name ? (this.isKeyedApi() ? this.findPreset(name) : name) : this.getSelectedPreset();
|
||||
const nameToDelete = name || this.getSelectedPresetName();
|
||||
|
||||
if (value == 'gui') {
|
||||
|
Loading…
Reference in New Issue
Block a user