Skip to content

Commit

Permalink
Merge pull request #32 from SanUSB-grupo/issue-29
Browse files Browse the repository at this point in the history
BUG-Blinkleds: primeiro item das measures é na verdade a última medida.
  • Loading branch information
atilacamurca committed Sep 10, 2016
2 parents 14f09c0 + 0bfb385 commit 8efc7ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/fidias/blinkleds/src/assets/components/blinkleds.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ define(['jquery', 'moment', 'monitors/timeout', 'monitors/monitor'],

if (itemsLength > 0) {
// update date
var lastItem = items.length - 1;
this.monitor.created_at = items[lastItem].created_at;
this.monitor.created_at = items[0].created_at;

var item = items[lastItem];
var item = items[0];
var currentLeds = this.renderItem(item);
this.setCurrentLeds(currentLeds);
}
Expand Down

0 comments on commit 8efc7ea

Please sign in to comment.