mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix: LoraManager UI not returning a component
This commit is contained in:
@@ -69,14 +69,21 @@ export default function LoraManager() {
|
||||
}
|
||||
}, [foundLoras, loraItems, dispatch, prompt, handleLora, renderLoraOption]);
|
||||
|
||||
return (
|
||||
foundLoras &&
|
||||
foundLoras?.length > 0 && (
|
||||
<IAISimpleMenu
|
||||
menuItems={loraItems}
|
||||
menuType="regular"
|
||||
buttonText={t('modelManager.addLora')}
|
||||
/>
|
||||
)
|
||||
return foundLoras && foundLoras?.length > 0 ? (
|
||||
<IAISimpleMenu
|
||||
menuItems={loraItems}
|
||||
menuType="regular"
|
||||
buttonText={t('modelManager.addLora')}
|
||||
/>
|
||||
) : (
|
||||
<Box
|
||||
background="var(--btn-base-color)"
|
||||
padding={2}
|
||||
textAlign="center"
|
||||
borderRadius={4}
|
||||
fontWeight="bold"
|
||||
>
|
||||
No Loras Found
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user