mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-09-02 18:39:09 +00:00
fix issue where deleting an applied preset group would prevent selection of a different preset group in the affected client
This commit is contained in:
parent
0623f74206
commit
03c78cc791
1 changed files with 4 additions and 3 deletions
|
@ -172,14 +172,15 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
availablePresets() {
|
availablePresets() {
|
||||||
|
let items = [{ title: 'Default', value: '' }]
|
||||||
if(!this.immutableConfig || !this.immutableConfig.presets) {
|
if(!this.immutableConfig || !this.immutableConfig.presets) {
|
||||||
return [];
|
return items;
|
||||||
}
|
}
|
||||||
const inferenceGroups = this.immutableConfig.presets.inference_groups;
|
const inferenceGroups = this.immutableConfig.presets.inference_groups;
|
||||||
if(!inferenceGroups || !Object.keys(inferenceGroups).length) {
|
if(!inferenceGroups || !Object.keys(inferenceGroups).length) {
|
||||||
return [];
|
return items;
|
||||||
}
|
}
|
||||||
let items = [{ title: 'Default', value: '' }]
|
|
||||||
for (const [key, value] of Object.entries(inferenceGroups)) {
|
for (const [key, value] of Object.entries(inferenceGroups)) {
|
||||||
items.push({
|
items.push({
|
||||||
title: value.name,
|
title: value.name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue