mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): use id for component key in control adapter components
This commit is contained in:
parent
ce3f9037cd
commit
ff00ed8e80
@ -30,7 +30,7 @@ export const MetadataControlNets = ({ metadata }: Props) => {
|
||||
<>
|
||||
{controlNets.map((controlNet) => (
|
||||
<MetadataViewControlNet
|
||||
key={controlNet.model.key}
|
||||
key={controlNet.id}
|
||||
label={label}
|
||||
controlNet={controlNet}
|
||||
handlers={handlers.controlNets}
|
||||
|
@ -29,12 +29,7 @@ export const MetadataIPAdapters = ({ metadata }: Props) => {
|
||||
return (
|
||||
<>
|
||||
{ipAdapters.map((ipAdapter) => (
|
||||
<MetadataViewIPAdapter
|
||||
key={ipAdapter.model.key}
|
||||
label={label}
|
||||
ipAdapter={ipAdapter}
|
||||
handlers={handlers.ipAdapters}
|
||||
/>
|
||||
<MetadataViewIPAdapter key={ipAdapter.id} label={label} ipAdapter={ipAdapter} handlers={handlers.ipAdapters} />
|
||||
))}
|
||||
</>
|
||||
);
|
||||
|
@ -30,7 +30,7 @@ export const MetadataT2IAdapters = ({ metadata }: Props) => {
|
||||
<>
|
||||
{t2iAdapters.map((t2iAdapter) => (
|
||||
<MetadataViewT2IAdapter
|
||||
key={t2iAdapter.model.key}
|
||||
key={t2iAdapter.id}
|
||||
label={label}
|
||||
t2iAdapter={t2iAdapter}
|
||||
handlers={handlers.t2iAdapters}
|
||||
|
Loading…
Reference in New Issue
Block a user