diff --git a/invokeai/frontend/web/src/features/embedding/EmbeddingSelect.tsx b/invokeai/frontend/web/src/features/embedding/EmbeddingSelect.tsx index 426ddd21e2..fd05edc466 100644 --- a/invokeai/frontend/web/src/features/embedding/EmbeddingSelect.tsx +++ b/invokeai/frontend/web/src/features/embedding/EmbeddingSelect.tsx @@ -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] );