Skip to content

Commit

Permalink
🐛 Bug - fixed uptime graph being reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Melbourne committed Oct 29, 2020
1 parent b4c9b9c commit 03a5cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/maelstrom.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions resources/js/components/UptimeReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export default class UptimeReport extends React.Component {
renderResponseTime() {
const { response_times } = this.state;

response_times.reverse();

const labels = response_times.map( i => i.date );
const data = response_times.map( i => i.value );

Expand Down

0 comments on commit 03a5cf0

Please sign in to comment.