mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix erroneous vae model display
`react-select` has some weird behaviour where if the value is `undefined`, it shows the last-selected value instead of nothing. Must fall back to `null`
This commit is contained in:
parent
930de51910
commit
8aeeee4752
@ -65,7 +65,7 @@ export const useGroupedModelInvSelect = <T extends AnyModelConfigEntity>(
|
||||
.flatMap((o) => o.options)
|
||||
.find((m) =>
|
||||
selectedModel ? m.value === getModelId(selectedModel) : false
|
||||
),
|
||||
) ?? null,
|
||||
[options, selectedModel]
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user