fix: Missing VAE Input Field Component

This commit is contained in:
blessedcoolant 2023-07-14 18:04:44 +12:00 committed by psychedelicious
parent e1d6c09ed2
commit 5c58bc6348
3 changed files with 20 additions and 4 deletions

View File

@ -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}

View File

@ -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);

View File

@ -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