Pārlūkot izejas kodu

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

tags/1.9.0
Joel pirms 1 mēnesi
vecāks
revīzija
1550316b8d
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
web/app/components/workflow/nodes/_base/components/variable/use-match-schema-type.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt