Hey!
I have a simple backoffice package where i need to retrieve information about the current user. Here is my code:
Copy code
angular.module("umbraco").run([
"userService",
function (userService) {
const user = userService.getCurrentUser();
user.then((response) => {
console.log(response);
});
},
]);
However, the entire backoffice goes blank when calling : userService.getCurrentUser().
There is no errors in the console. Also the correct data from the userobject is outputted to the console. Any ideas what might be causing this? ( Umbraco version 13)