fix issue where deleting an applied preset group would prevent selection of a different preset group in the affected client
Some checks are pending
Python Tests / test (3.10) (push) Waiting to run
Python Tests / test (3.11) (push) Waiting to run
Python Tests / test (3.12) (push) Waiting to run
Python Tests / test (3.13) (push) Waiting to run

This commit is contained in:
vegu-ai-tools 2025-05-10 17:21:50 +03:00
parent 0623f74206
commit 03c78cc791

View file

@ -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,