From 68e856987ece7d3d06c542698a454127a3e98513 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 27 Jun 2021 22:35:51 -0700 Subject: [PATCH] GUACAMOLE-724: Clear out sharing profiles from previous client if focus is changing to a client lacking a UUID. --- .../frontend/src/app/client/controllers/clientController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/frontend/src/app/client/controllers/clientController.js b/guacamole/src/main/frontend/src/app/client/controllers/clientController.js index de806bc3b..b5138537d 100644 --- a/guacamole/src/main/frontend/src/app/client/controllers/clientController.js +++ b/guacamole/src/main/frontend/src/app/client/controllers/clientController.js @@ -462,8 +462,10 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams $scope.$watch('focusedClient.tunnel.uuid', function retrieveSharingProfiles(uuid) { // Only pull sharing profiles if tunnel UUID is actually available - if (!uuid) + if (!uuid) { + $scope.sharingProfiles = {}; return; + } // Pull sharing profiles for the current connection tunnelService.getSharingProfiles(uuid)