From 3cd05cf6bfd02ba1666a14fe027d04cca756068d Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 10 Aug 2023 15:31:29 +1000 Subject: [PATCH] fix(ui): fix lora sort was sorting with disabled at top of list instead of bottom fixes #4217 --- .../web/src/features/lora/components/ParamLoraSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx b/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx index 631047aaab..6771a8873e 100644 --- a/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx +++ b/invokeai/frontend/web/src/features/lora/components/ParamLoraSelect.tsx @@ -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(