From 26716686ba8f322bec5e74abbe4def61b1a7a536 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:31:45 +0300 Subject: [PATCH] Add parentheses for clarity --- public/scripts/preset-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index 9b54169ba..e25de5eec 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -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') {