fix: update LoRA model type check to use constant for improved readability, fixes #341

This commit is contained in:
Will Miao
2025-08-05 19:11:28 +08:00
parent 66575c719a
commit 6f2ad2be77

View File

@@ -241,7 +241,7 @@ function showModelModalFromCard(card, modelType) {
tags: JSON.parse(card.dataset.tags || '[]'),
modelDescription: card.dataset.modelDescription || '',
// LoRA specific fields
...(modelType === 'lora' && {
...(modelType === MODEL_TYPES.LORA && {
usage_tips: card.dataset.usage_tips,
})
};