fix(ui): fix selecting model does not update form

This commit is contained in:
psychedelicious 2023-07-14 19:31:52 +10:00
parent 1e5ae9d986
commit 0b2f0c05b2

View File

@ -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 (