Remove empty whitespace lines
This commit is contained in:
+3
-3
@@ -679,10 +679,10 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura
|
||||
try {
|
||||
const api_key = localStorage.getItem('api_key', 'null');
|
||||
const params = { end: end.unix(), duration: duration.len.toLowerCase(), window: duration.win, api_key: api_key };
|
||||
|
||||
|
||||
const names = sensors.join(',');
|
||||
const res = await axios.get(`https://sensors-api.dns.t0.vc/history/${measurement}/${names}`, { params });
|
||||
|
||||
|
||||
const formattedData = res.data.map(d => {
|
||||
const newObj = { time: d.time };
|
||||
sensors.forEach(sensor => {
|
||||
@@ -690,7 +690,7 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura
|
||||
});
|
||||
return newObj;
|
||||
});
|
||||
|
||||
|
||||
setData(formattedData);
|
||||
setLoading(false);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user