Fixed XSS (#339)
This commit is contained in:
parent
304d23502a
commit
61717aee95
@ -34,11 +34,9 @@ export function dataPrep(data, type) {
|
|||||||
} else {
|
} else {
|
||||||
vals = fillArray(vals, datasetLength - vals.length, 0);
|
vals = fillArray(vals, datasetLength - vals.length, 0);
|
||||||
}
|
}
|
||||||
|
d.values = vals;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set labels
|
|
||||||
//
|
|
||||||
|
|
||||||
// Set type
|
// Set type
|
||||||
if (!d.chartType) {
|
if (!d.chartType) {
|
||||||
if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE;
|
if (!AXIS_DATASET_CHART_TYPES.includes(type)) type === DEFAULT_AXIS_CHART_TYPE;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user