Skip to content
Snippets Groups Projects
Commit c3bf6f65 authored by esikkala's avatar esikkala
Browse files

Fix mapFacetValues

parent 5db488bb
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ const trimResult = arr => {
}
const mapFacetValues = sparqlBindings => {
const results = sparqlBindings.forEach(b => {
const results = sparqlBindings.map(b => {
try {
return {
id: b.id.value,
......@@ -213,6 +213,7 @@ const mapFacetValues = sparqlBindings => {
} catch (err) {
console.log(err)
}
return null
})
return results
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment