mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix lora metadata rendering
This commit is contained in:
parent
e6de915c34
commit
04545e792c
@ -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} />;
|
||||||
|
Loading…
Reference in New Issue
Block a user