mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
show message if topology is empty
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user