removing batchCodesSelect

This commit is contained in:
frankknoll
2023-04-16 14:34:53 +02:00
parent fef2957d60
commit 8031277b31
6 changed files with 5 additions and 67 deletions

View File

@@ -5,6 +5,8 @@ class HistoDescrsProvider {
.then(response => response.json())
.then(histoDescrs => {
histoDescrs.histograms.sort((histoDescr1, histoDescr2) => histoDescr1.batchcodes.length - histoDescr2.batchcodes.length);
histoDescrs.histogram = histoDescrs.histograms[0].histogram;
delete histoDescrs.histograms;
return histoDescrs;
});
}