Skip to content

Commit

Permalink
fix that "Incoming Thing Updates" always repeated the first entry
Browse files Browse the repository at this point in the history
* new entries to the table were not added correctly, but always only the first received entry was added again
  • Loading branch information
thjaeckle committed Feb 9, 2024
1 parent 4a6011b commit 87aeca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/modules/things/messagesIncoming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function onMessage(messageData) {
const filteredMessage = dom.tableFilterMessagesIncoming.filterItems(messages);

if (filteredMessage.length > 0) {
filteredMessages.push(filteredMessage[0]);
addTableRow(filteredMessage[0]);
filteredMessages.push(filteredMessage[filteredMessage.length-1]);
addTableRow(filteredMessage[filteredMessage.length-1]);
}

Utils.updateCounterBadge(dom.badgeMessageIncomingCount, messages, filteredMessage);
Expand Down

0 comments on commit 87aeca5

Please sign in to comment.