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

chore: remove no kgid message, replace spatial lm message

parent cb8a562c
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,15 @@ export class AtlasViewerDataService implements OnDestroy{
.then(arr => {
this.store.dispatch({
type : FETCHED_SPATIAL_DATA,
fetchedDataEntries : arr.reduce((acc,curr) => acc.concat(curr.map(obj => Object.assign({}, obj, {
properties : {}
}))), [])
fetchedDataEntries: arr
.reduce((acc, curr) => acc.concat(curr), [])
.map((obj, idx) => {
return {
...obj,
name: `Spatial landmark #${idx}`,
properties: {}
}
})
})
this.store.dispatch({
type : UPDATE_SPATIAL_DATA,
......
......@@ -27,5 +27,4 @@
</ng-template>
<ng-template #noKgID>
kgID not specified.
</ng-template>
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