diff --git a/docs/CompanyByBatchcodeProvider.js b/docs/CompanyByBatchcodeProvider.js index 171de66a3f9..a19bb467ecf 100644 --- a/docs/CompanyByBatchcodeProvider.js +++ b/docs/CompanyByBatchcodeProvider.js @@ -1,8 +1,8 @@ class CompanyByBatchcodeProvider { static getCompany(batchcode) { - return fetch(`data/histograms/Global/${batchcode}.json`) - .then(response => response.json()) + return HistoDescrsProvider + .getHistoDescrs(batchcode) .then(histoDescrs => histoDescrs.Company); } } \ No newline at end of file diff --git a/docs/HistoDescrsProvider.js b/docs/HistoDescrsProvider.js index 2e8624b18bf..176a176893c 100644 --- a/docs/HistoDescrsProvider.js +++ b/docs/HistoDescrsProvider.js @@ -1,6 +1,7 @@ class HistoDescrsProvider { static getHistoDescrs(batchcode) { - return fetch(`data/histograms/Global/${batchcode}.json`).then(response => response.json()) + return fetch(`data/histograms/Global/${batchcode}.json`) + .then(response => response.json()) } } \ No newline at end of file