Skip to content

Instantly share code, notes, and snippets.

@cardil
Created September 18, 2026 13:48
Show Gist options
  • Select an option

  • Save cardil/e4c3918527a9a34b34b19c890e88b4d0 to your computer and use it in GitHub Desktop.

Select an option

Save cardil/e4c3918527a9a34b34b19c890e88b4d0 to your computer and use it in GitHub Desktop.
Patch for the Cisco Catalyst UI crash
diff --git a/html/utils/header/headerCtrl.js b/html/utils/header/headerCtrl.js
index 1520107..1a1e4b3 100755
--- a/html/utils/header/headerCtrl.js
+++ b/html/utils/header/headerCtrl.js
@@ -545,6 +545,8 @@ app.controller("headerCtrl", ['$rootScope', '$scope', '$filter', '$location', '$
}
function fetchUsername() {
+ $scope.userName = "Admin";
+ return;
var usernameResponse = "";
var GET_USERNAME = "";
if($(location)[0] != undefined && $(location)[0] !=""){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment