Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
9eb85837
Commit
9eb85837
authored
Sep 13, 2018
by
Florent Chehab
Browse files
Removed logging
parent
feb1bc63
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/university/modules/editors/fields/UsefulLinksField.js
View file @
9eb85837
...
@@ -72,7 +72,6 @@ class UsefulLinksField extends Field {
...
@@ -72,7 +72,6 @@ class UsefulLinksField extends Field {
}
}
getValue
()
{
getValue
()
{
console
.
log
(
"
Get value comme il faut !
"
)
const
usefulLinks
=
this
.
state
.
value
;
const
usefulLinks
=
this
.
state
.
value
;
let
emptyIndexes
=
Array
();
let
emptyIndexes
=
Array
();
usefulLinks
.
map
((
el
,
idx
)
=>
{
usefulLinks
.
map
((
el
,
idx
)
=>
{
...
@@ -80,7 +79,6 @@ class UsefulLinksField extends Field {
...
@@ -80,7 +79,6 @@ class UsefulLinksField extends Field {
emptyIndexes
.
push
(
idx
);
emptyIndexes
.
push
(
idx
);
}
}
})
})
console
.
log
(
"
empty indexes
"
,
emptyIndexes
)
return
usefulLinks
.
filter
((
s
,
idx
)
=>
!
(
idx
in
emptyIndexes
));
return
usefulLinks
.
filter
((
s
,
idx
)
=>
!
(
idx
in
emptyIndexes
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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