mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix missing tags on template parse
This commit is contained in:
parent
adb05cde5b
commit
385765faec
@ -495,11 +495,8 @@ export type TypeHints = {
|
||||
|
||||
export type InvocationSchemaExtra = {
|
||||
output: OpenAPIV3.ReferenceObject; // the output of the invocation
|
||||
ui?: {
|
||||
tags?: string[];
|
||||
title?: string;
|
||||
};
|
||||
title: string;
|
||||
tags?: string[];
|
||||
properties: Omit<
|
||||
NonNullable<OpenAPIV3.SchemaObject['properties']> &
|
||||
(_InputField | _OutputField),
|
||||
|
@ -36,8 +36,8 @@ export const parseSchema = (
|
||||
>((acc, schema) => {
|
||||
if (isInvocationSchemaObject(schema)) {
|
||||
const type = schema.properties.type.default;
|
||||
const title = schema.ui?.title ?? schema.title.replace('Invocation', '');
|
||||
const tags = schema.ui?.tags ?? [];
|
||||
const title = schema.title.replace('Invocation', '');
|
||||
const tags = schema.tags ?? [];
|
||||
const description = schema.description ?? '';
|
||||
|
||||
const inputs = reduce(
|
||||
|
Loading…
Reference in New Issue
Block a user