Adapt QC view to new label payload from API

This commit is contained in:
D. Berge
2023-09-14 13:13:18 +02:00
parent 6162a5bdee
commit 597d407acc

View File

@@ -433,10 +433,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]) || {};
},
async getQCData () {