mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Missing VAE Input Field Component
This commit is contained in:
parent
e1d6c09ed2
commit
5c58bc6348
@ -17,6 +17,7 @@ import ModelInputFieldComponent from './fields/ModelInputFieldComponent';
|
||||
import NumberInputFieldComponent from './fields/NumberInputFieldComponent';
|
||||
import StringInputFieldComponent from './fields/StringInputFieldComponent';
|
||||
import UnetInputFieldComponent from './fields/UnetInputFieldComponent';
|
||||
import VaeInputFieldComponent from './fields/VaeInputFieldComponent';
|
||||
import VaeModelInputFieldComponent from './fields/VaeModelInputFieldComponent';
|
||||
|
||||
type InputFieldComponentProps = {
|
||||
@ -123,9 +124,9 @@ const InputFieldComponent = (props: InputFieldComponentProps) => {
|
||||
);
|
||||
}
|
||||
|
||||
if (type === 'vae_model' && template.type === 'vae_model') {
|
||||
if (type === 'vae' && template.type === 'vae') {
|
||||
return (
|
||||
<VaeModelInputFieldComponent
|
||||
<VaeInputFieldComponent
|
||||
nodeId={nodeId}
|
||||
field={field}
|
||||
template={template}
|
||||
|
@ -0,0 +1,15 @@
|
||||
import {
|
||||
VaeInputFieldTemplate,
|
||||
VaeInputFieldValue,
|
||||
} from 'features/nodes/types/types';
|
||||
import { memo } from 'react';
|
||||
import { FieldComponentProps } from './types';
|
||||
|
||||
const VaeInputFieldComponent = (
|
||||
props: FieldComponentProps<VaeInputFieldValue, VaeInputFieldTemplate>
|
||||
) => {
|
||||
const { nodeId, field } = props;
|
||||
return null;
|
||||
};
|
||||
|
||||
export default memo(VaeInputFieldComponent);
|
@ -94,7 +94,7 @@ export type InputFieldValue =
|
||||
| ConditioningInputFieldValue
|
||||
| UNetInputFieldValue
|
||||
| ClipInputFieldValue
|
||||
| VaeModelInputFieldValue
|
||||
| VaeInputFieldValue
|
||||
| ControlInputFieldValue
|
||||
| EnumInputFieldValue
|
||||
| MainModelInputFieldValue
|
||||
@ -121,7 +121,7 @@ export type InputFieldTemplate =
|
||||
| ConditioningInputFieldTemplate
|
||||
| UNetInputFieldTemplate
|
||||
| ClipInputFieldTemplate
|
||||
| VaeModelInputFieldTemplate
|
||||
| VaeInputFieldTemplate
|
||||
| ControlInputFieldTemplate
|
||||
| EnumInputFieldTemplate
|
||||
| ModelInputFieldTemplate
|
||||
|
Loading…
Reference in New Issue
Block a user