Commit c7b88794 authored by Curtis Adam's avatar Curtis Adam

Empty the category filter array before filling it with new data

parent 455b493f
......@@ -136,6 +136,7 @@ export class MapRendererService {
async setCategories(): Promise<void> {
try {
const categories = await this.dataService.get(categoryModelDefinition);
this.poiCategories = [];
categories.forEach((category: CategoryModel) => {
this.poiCategories.push(category);
});
......
Markdown is supported
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