diff --git a/resources/js/app.js b/resources/js/app.js index 3ebc947..de88be4 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -206,12 +206,12 @@ console.log(Bootstrap); , _routerActionClient: function (hostname) { var that = this , server = this.servers.get(hostname) - , client = server.client + , client = server && server.client || undefined ; - that.Views.SideBar.select(server); + if (server && client) { + that.Views.SideBar.select(server); - if (client) { var __fnAppEventClientLoaded = function () { if (!that.Views.Main.getView(server.get("hostname"))) { that.Views.Main.setView(server.client.attributes.hostname, new ClientView({