Project

General

Profile

Actions

Bug #774

closed

Creation of new term fails if type is not selected

Added by Martin Ledvinka almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Urgent
Target version:
Start date:
08.11.2018
Due date:
% Done:

0%

Estimated time:

Description

When I try to create a new term and do not select a type, creation fails with an exception:

Unhandled Rejection (TypeError): Cannot read property 'iri' of undefined
CreateTerm../src/component/term/CreateTerm.tsx.CreateTerm.createNewOption
src/component/term/CreateTerm.tsx:221
  218 |         comment: data.optionDescription as string,
  219 |         subTerms: children,
  220 |         parent: parent as string,
> 221 |         types: [data.typeOption.iri as string],
  222 |         sources: [data.optionSource as string],
  223 |     }), this.props.match.params.name);
  224 | }
Actions

Also available in: Atom PDF