fix(ui): fix lora metadata rendering

This commit is contained in:
psychedelicious 2024-02-26 11:51:37 +11:00
parent e6de915c34
commit 04545e792c

View File

@ -1,3 +1,4 @@
import { Text } from '@invoke-ai/ui-library';
import type { LoRA } from 'features/lora/store/loraSlice'; import type { LoRA } from 'features/lora/store/loraSlice';
import { MetadataItemView } from 'features/metadata/components/MetadataItemView'; import { MetadataItemView } from 'features/metadata/components/MetadataItemView';
import type { MetadataHandlers } from 'features/metadata/types'; import type { MetadataHandlers } from 'features/metadata/types';
@ -54,7 +55,7 @@ const MetadataViewLoRA = ({
if (!handlers.renderItemValue) { if (!handlers.renderItemValue) {
return null; return null;
} }
return handlers.renderItemValue(lora); return <Text>{handlers.renderItemValue(lora)}</Text>;
}, [handlers, lora]); }, [handlers, lora]);
return <MetadataItemView label={label} isDisabled={false} onRecall={onRecall} renderedValue={renderedValue} />; return <MetadataItemView label={label} isDisabled={false} onRecall={onRecall} renderedValue={renderedValue} />;