Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: preserve model-specific image quality labels (#19561)

YuTengjinge017af401991
diff --git a/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx b/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
index 84877b1814a..58c64e4cc24 100644
--- a/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
+++ b/src/routes/(main)/(create)/image/features/ConfigPanel/components/QualitySelect.tsx
@@ -11,9 +11,9 @@ const QualitySelect = memo(() => {
const options =
enumValues?.map((quality) => ({
label:
- quality === 'standard'
- ? t('config.quality.options.standard')
- : t('config.quality.options.hd'),
+ quality === 'standard' || quality === 'hd'
+ ? t(`config.quality.options.${quality}`)
+ : quality,
value: quality,
})) ?? [];