I have upgraded my dashboard-2 to v1.23.0.
In my custom UI node, when I send messages as 'widget-action' (this.$socket.emit('widget-action', this.id, msg) ), their topic property is getting overrun and becomes undefined.
This happens also in the generic ui-template node. Using this.send(msg) works OK, but using emit to 'widget-action' overwrites the topic property.
For example, I inject a msg with msg.topic='myTopic'to the template:
mounted() {
const $scope = this;
// Socket listener
this.$socket.on('msg-input:' + this.id, function(msg) {
msg.payload = "Using 'emit'";
$scope.$socket.emit('widget-action', $scope.id, msg);
msg.payload = "Using 'send'";
$scope.send(msg)
});
}
and get the following result:
@joepavitt - any ideas? this was not happening in earlier dashboard versions.
