Looking to extract the first array from a subarray, my current setup is as follows:
Map: map;
Map() {
Service
});
}
This is the interface structure:
export interface map {
}
Encountering an error message:
ERROR TypeError: Cannot set property 'heatmap' of undefined
What changes should be made to resolve this issue?
Another error persists:
core.js:4442 ERROR TypeError: Cannot read property 'map' of null
.pipe(map((res) => res.map.slice(0, 1)))
The function looks like this:
Map() {
});
}
After some adjustments, it now appears as follows:
dMap() {
console.log(this.Map.map);
this.Service
});
}
However, hovering over this line triggers an issue:
console.log(this.Map.heatmap);