show message if topology is empty

This commit is contained in:
David Kaltschmidt
2015-09-21 19:02:30 +02:00
parent 8f2dc64762
commit 5c086aeeb3
6 changed files with 100 additions and 16 deletions

View File

@@ -60,9 +60,7 @@ function createWebsocket(topologyUrl, optionsQuery) {
socket.onmessage = function(event) {
const msg = JSON.parse(event.data);
if (msg.add || msg.remove || msg.update) {
AppActions.receiveNodesDelta(msg);
}
AppActions.receiveNodesDelta(msg);
};
}
@@ -146,4 +144,3 @@ module.exports = {
getNodesDelta: getTopology
};