Skip to content
Snippets Groups Projects
Commit 8daf0d26 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: not fetching ieeg data

parent 920b306f
No related branches found
No related tags found
No related merge requests found
......@@ -128,14 +128,16 @@ const getDs = ({ user }) => (user
*/
const existingEntryIdx = acc.findIndex(v => v['fullId'] === curr['fullId'])
if (existingEntryIdx >= 0) {
const returnArr = [...acc].splice(existingEntryIdx, 1, {
const itemToReturn = {
...acc[existingEntryIdx],
...curr,
parcellationRegion: [
...(curr['parcellationRegion'] || []),
...(acc[existingEntryIdx]['parcellationRegion'] || [])
]
})
}
const returnArr = [...acc]
returnArr.splice(existingEntryIdx, 1, itemToReturn)
return returnArr
}
else return acc.concat(curr)
......
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