Adapt Map view to new label payload from API

This commit is contained in:
D. Berge
2023-09-12 19:31:58 +02:00
parent 4f165b0c83
commit 98d9b3b093

View File

@@ -674,10 +674,7 @@ export default {
async getLabelDefinitions () {
const url = `/project/${this.$route.params.project}/label`;
const labelSet = {};
const labels = await this.api([url]) || [];
labels.forEach( l => labelSet[l.name] = l.data );
this.labels = labelSet;
this.labels = await this.api([url]) || [];
},
...mapActions(["api"])