Преглед на файлове

fix: undefined match the wrong output schema (#25971)

tags/1.9.0
Joel преди 1 месец
родител
ревизия
1550316b8d
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      web/app/components/workflow/nodes/_base/components/variable/use-match-schema-type.ts

+ 1
- 1
web/app/components/workflow/nodes/_base/components/variable/use-match-schema-type.ts Целия файл

@@ -4,7 +4,7 @@ import type { AnyObj } from './match-schema-type'
import matchTheSchemaType from './match-schema-type'

export const getMatchedSchemaType = (obj: AnyObj, schemaTypeDefinitions?: SchemaTypeDefinition[]): string => {
if(!schemaTypeDefinitions) return ''
if(!schemaTypeDefinitions || obj === undefined || obj === null) return ''
const matched = schemaTypeDefinitions.find(def => matchTheSchemaType(obj, def.schema))
return matched ? matched.name : ''
}

Loading…
Отказ
Запис