mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix lora sort
was sorting with disabled at top of list instead of bottom fixes #4217
This commit is contained in:
parent
49cce1eec6
commit
3cd05cf6bf
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user