fix(ui): fix lora sort

was sorting with disabled at top of list instead of bottom

fixes #4217
This commit is contained in:
psychedelicious 2023-08-10 15:31:29 +10:00
parent 49cce1eec6
commit 3cd05cf6bf

View File

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