diff --git a/src/fprime_gds/flask/static/js/datastore.js b/src/fprime_gds/flask/static/js/datastore.js index ee99cc16..892f128f 100644 --- a/src/fprime_gds/flask/static/js/datastore.js +++ b/src/fprime_gds/flask/static/js/datastore.js @@ -28,6 +28,7 @@ class HistoryHelper { this.active_key = active_key; this.consumers = []; this.active_timeout = null; + this.counter = 0; } /** @@ -58,7 +59,8 @@ class HistoryHelper { // Break our when no new items returned if (new_items.length === 0) { return; } new_items.filter((item) => item.time).forEach((item) => { - item.datetime = timeToDate(item.time) + item.datetime = timeToDate(item.time); + item.incremental_id = this.counter++; }); this.consumers.forEach((consumer) => { try { diff --git a/src/fprime_gds/flask/static/js/vue-support/event.js b/src/fprime_gds/flask/static/js/vue-support/event.js index befed103..441ae9b4 100644 --- a/src/fprime_gds/flask/static/js/vue-support/event.js +++ b/src/fprime_gds/flask/static/js/vue-support/event.js @@ -109,7 +109,7 @@ Vue.component("event-list", { * @return {string} unique key */ keyify(item) { - return "evt-" + item.id + "-" + item.time.seconds + "-"+ item.time.microseconds; + return "evt-" + item.id + "-" + item.time.seconds + "-"+ item.time.microseconds + "-" + item.incremental_id; }, /** * A function to clear events out of the data store. This is to reset the events entirely.