From 03c78cc791470adcc987851a20a674b6a1c209e3 Mon Sep 17 00:00:00 2001 From: vegu-ai-tools <152010387+vegu-ai-tools@users.noreply.github.com> Date: Sat, 10 May 2025 17:21:50 +0300 Subject: [PATCH] fix issue where deleting an applied preset group would prevent selection of a different preset group in the affected client --- talemate_frontend/src/components/AIClient.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/talemate_frontend/src/components/AIClient.vue b/talemate_frontend/src/components/AIClient.vue index 19e0f57f..9975288f 100644 --- a/talemate_frontend/src/components/AIClient.vue +++ b/talemate_frontend/src/components/AIClient.vue @@ -172,14 +172,15 @@ export default { }, computed: { availablePresets() { + let items = [{ title: 'Default', value: '' }] if(!this.immutableConfig || !this.immutableConfig.presets) { - return []; + return items; } const inferenceGroups = this.immutableConfig.presets.inference_groups; if(!inferenceGroups || !Object.keys(inferenceGroups).length) { - return []; + return items; } - let items = [{ title: 'Default', value: '' }] + for (const [key, value] of Object.entries(inferenceGroups)) { items.push({ title: value.name,