Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Catalog
catalog.genesys-pgr.org
Commits
990bf451
Commit
990bf451
authored
Feb 02, 2018
by
Matija Obreza
Browse files
FIX: Importing descriptor definitions fails when descriptions are not provided.
parent
06737ce6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/catalog/descriptor/DescriptorUpload.tsx
View file @
990bf451
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment