fix dropdowns

This commit is contained in:
aakashb95
2025-12-18 13:09:34 +05:30
parent d95d63d59d
commit 26db79584b
2 changed files with 12 additions and 20 deletions
@@ -16,11 +16,7 @@ const getters = {
getUIFlags: $state => $state.uiFlags,
getModelsForFeature: $state => featureKey => {
const feature = $state.features[featureKey];
if (!feature?.models) return [];
return feature.models.map(modelKey => ({
key: modelKey,
...$state.models[modelKey],
}));
return feature?.models || [];
},
getDefaultModelForFeature: $state => featureKey => {
const feature = $state.features[featureKey];