mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): get embedding select working
This commit is contained in:
parent
ff53d828ce
commit
d6c9360fa3
@ -18,7 +18,7 @@ export const EmbeddingSelect = memo(({ onSelect, onClose }: EmbeddingSelectProps
|
||||
|
||||
const getIsDisabled = useCallback(
|
||||
(embedding: TextualInversionConfig): boolean => {
|
||||
const isCompatible = currentBaseModel === embedding.base_model;
|
||||
const isCompatible = currentBaseModel === embedding.base;
|
||||
const hasMainModel = Boolean(currentBaseModel);
|
||||
return !hasMainModel || !isCompatible;
|
||||
},
|
||||
@ -31,7 +31,7 @@ export const EmbeddingSelect = memo(({ onSelect, onClose }: EmbeddingSelectProps
|
||||
if (!embedding) {
|
||||
return;
|
||||
}
|
||||
onSelect(embedding.model_name);
|
||||
onSelect(embedding.key);
|
||||
},
|
||||
[onSelect]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user