Adapt Log view to new label payload from API

This commit is contained in:
D. Berge
2023-09-10 12:01:30 +02:00
parent 941d15c1bc
commit 158e0fb788

View File

@@ -604,10 +604,10 @@ 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;
//const labelSet = {};
this.labels = await this.api([url]) ?? {};
//labels.forEach( l => labelSet[l.name] = l.data );
//this.labels = labelSet;
},
async getPresetRemarks () {