asked on November 5 Show version history

When a user logs in and does not see their name or any menu in Cloud the following is posted to the console, but it does not say why.

Looking at the method it seems the error was excluded from the output.

window.utils.loadScript(`${window.CDN_HOST_PATH_LF}${window.CDN_NAV_BAR_PATH}${window.NAV_BAR_VERSION}/user-dropdown/user-dropdown.js`).then(( () => {
                            window.LFAccountDropdown = window.LFAccountDropdown || {},
                            window.LFAccountDropdown.userFeedback = {
                                hostingModule: "AccountControlSystem",
                                hostingcontext: "ACS",
                                userId: this.session.TrusteeID,
                                accountId: this.session.CustomerID,
                                email: this.session.Email
                            };
                            let e = new LfUserDropdown;
                            this.translateService.get("topPanel.adminUpperCase").subscribe((t => {
                                let n = this.session.DisplayName || this.session.Name + (this.userRedirectInfo.isAdmin ? ` ${t}` : "");
                                e.init({
                                    UserName: n
                                }, window.Domain, window.CDN_HOST_PATH_LF, "lf-user-dropdown-hook", this.showLFTUserFeedback, !0, this.showSupportPage)
                            }
                            )),
                            this.loading = !1
                        }
                        )).catch(( () => {
                            console.error("user dropdown was not loaded"),
                            this.loading = !1
                        }
                        )))

We need to add the error variable to this console error so we can see what happened.

console.error("user dropdown was not loaded because " + error),

I tried overriding the code but if you refresh the page it pulls from the original JS file again and the function is never called again as you browse around leaving the user without a menu or access to log out.

0 0