mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix selecting model does not update form
This commit is contained in:
parent
1e5ae9d986
commit
0b2f0c05b2
@ -36,11 +36,11 @@ const ModelEdit = (props: ModelEditProps) => {
|
|||||||
const { model } = props;
|
const { model } = props;
|
||||||
|
|
||||||
if (model?.model_format === 'checkpoint') {
|
if (model?.model_format === 'checkpoint') {
|
||||||
return <CheckpointModelEdit model={model} />;
|
return <CheckpointModelEdit key={model.id} model={model} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model?.model_format === 'diffusers') {
|
if (model?.model_format === 'diffusers') {
|
||||||
return <DiffusersModelEdit model={model} />;
|
return <DiffusersModelEdit key={model.id} model={model} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user