Actions
Bug #774
closedCreation of new term fails if type is not selected
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