Skip to content

Commit

Permalink
Merge pull request eclipse-ditto#1901 from eclipse-ditto/bugfix/ui-in…
Browse files Browse the repository at this point in the history
…coming-thing-updates

fix that "Incoming Thing Updates" always repeated the first entry
  • Loading branch information
thjaeckle authored Feb 13, 2024
2 parents ffdd3de + 986df09 commit 0d04168
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 @@ -125,14 +125,14 @@ function onSelectThingUpdateMessageContentSelect() {
function onMessage(messageData) {
messages.push(messageData);

const filteredMessage = dom.tableFilterMessagesIncoming.filterItems(messages);
const filteredMessage = dom.tableFilterMessagesIncoming.filterItems([messageData]);

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

Utils.updateCounterBadge(dom.badgeMessageIncomingCount, messages, filteredMessage);
Utils.updateCounterBadge(dom.badgeMessageIncomingCount, messages, filteredMessages);
}

function addTableRow(messageData: any) {
Expand Down

0 comments on commit 0d04168

Please sign in to comment.