fix: LoRA list name sorting

This commit is contained in:
blessedcoolant 2023-08-12 04:47:15 +12:00
parent 5629d8fa37
commit 58a48bf197

View File

@ -54,6 +54,8 @@ const ParamLoRASelect = () => {
});
});
data.sort((a, b) => (a.label && !b.label ? 1 : -1));
return data.sort((a, b) => (a.disabled && !b.disabled ? 1 : -1));
}, [loras, loraModels, currentMainModel?.base_model]);