Commit 255d3226 by OuiAtichat

unshift table

parent b1eeb28d
......@@ -176,7 +176,7 @@ class Home extends Component {
loopFeedData = async (deviceId, selectedRange, breakdown) => {
console.log('loopFeedData');
// clearInterval(this.looper)
clearInterval(this.looper);
await this.getFeedData(deviceId, selectedRange, breakdown);
this.looper = setInterval(async () => await this.getFeedData(deviceId, selectedRange, breakdown), 60000);
};
......@@ -333,7 +333,7 @@ class Home extends Component {
timestamp: moment(data[1].values[i][0]).format('D/M/YY H:mm'),
};
table[table.length] = v;
table.unshift(v);
}
return table;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment