fix: footer indicators

This commit is contained in:
Vyacheslav Matyukhin 2022-04-26 00:42:27 +04:00
parent c039dde3e7
commit 6720a39a95
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -68,9 +68,9 @@ const formatNumber = (num) => {
const formatQualityIndicators = (qualityIndicators: QualityIndicator) => { const formatQualityIndicators = (qualityIndicators: QualityIndicator) => {
let newQualityIndicators: { [k: string]: string | number } = {}; let newQualityIndicators: { [k: string]: string | number } = {};
for (const key in Object.keys(qualityIndicators)) { for (const key of Object.keys(qualityIndicators)) {
const newKey = formatQualityIndicator(key as IndicatorName); const newKey = formatQualityIndicator(key as IndicatorName);
if (newKey) { if (newKey && qualityIndicators[key] !== null) {
newQualityIndicators[newKey] = qualityIndicators[key]; newQualityIndicators[newKey] = qualityIndicators[key];
} }
} }