Skip to content

Commit 8aeeee4

Browse files
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`
1 parent 930de51 commit 8aeeee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/common/components/InvSelect/useGroupedModelInvSelect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const useGroupedModelInvSelect = <T extends AnyModelConfigEntity>(
6565
.flatMap((o) => o.options)
6666
.find((m) =>
6767
selectedModel ? m.value === getModelId(selectedModel) : false
68-
),
68+
) ?? null,
6969
[options, selectedModel]
7070
);
7171

0 commit comments

Comments
 (0)