Parcourir la source

Fixed XSS (#339)

pull/347/head
T3cH_W1z4rD il y a 4 ans
committed by GitHub
Parent
révision
61717aee95
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. +1
    -3
      src/js/utils/axis-chart-utils.js

+ 1
- 3
src/js/utils/axis-chart-utils.js Voir le fichier

@@ -34,11 +34,9 @@ export function dataPrep(data, type) {
} else {
vals = fillArray(vals, datasetLength - vals.length, 0);
}
d.values = vals;
}

// Set labels
//

// Set type
if (!d.chartType) {
if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE;


Chargement…
Annuler
Enregistrer