Commit 990bf451 authored by Matija Obreza's avatar Matija Obreza
Browse files

FIX: Importing descriptor definitions fails when descriptions are not provided.

parent 06737ce6
......@@ -46,8 +46,8 @@ class DescriptorUpload extends React.Component<IDescriptorUpload, any> {
for (let i = 0; i < c.length; i++) {
const term: VocabularyTerm = new VocabularyTerm();
term.code = c[i].trim();
term.title = t.length >= i ? t[i].trim() : c[i].trim();
term.description = d.length >= i ? d[i].trim() : null;
term.title = t.length > i ? t[i].trim() : c[i].trim();
term.description = d.length > i ? d[i].trim() : null;
terms.push(term);
}
......
Supports Markdown
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