Commit d9260a7b authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: check for unavailable property type

parent ae214177
......@@ -76,7 +76,10 @@ export function PropertiesFormSection(
<FormFieldCondition
name={`${name}.type.code`}
condition={(id) =>
id !== '' && propertyTypesById[id].type === 'concept'
id !== '' &&
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
propertyTypesById[id] !== undefined &&
propertyTypesById[id].type === 'concept'
}
>
{(id: string) => {
......@@ -95,7 +98,10 @@ export function PropertiesFormSection(
<FormFieldCondition
name={`${name}.type.code`}
condition={(id) =>
id !== '' && propertyTypesById[id].type !== 'concept'
id !== '' &&
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
propertyTypesById[id] !== undefined &&
propertyTypesById[id].type !== 'concept'
}
>
<FormTextField
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment