Toda a vez que carrego o Fluig, aparece o seguinte erro no console do Chrome:
pageeditor_pt_BR.js?v=1.7.1-211222:41 Uncaught TypeError: Cannot read properties of undefined (reading ‘trim’)
at Object.limitNameSizeIfTooLarge (pageeditor_pt_BR.js?v=1.7.1-211222:41:50)
at Object.init (pageeditor_pt_BR.js?v=1.7.1-211222:36:18)
at Object.instance (wcm_global_pt_BR.js?v=1.7.1-211222:10:22105)
at liquid_header_pt_BR.js?v=1.7.1-211222:37:42
at Object. (fluig-style-guide.min.js?v=1.7.1-211222:21:24165)
at c (jquery-3.5.1.min.js?v=1.7.1-211222:2:28504)
at Object.fireWith [as resolveWith] (jquery-3.5.1.min.js?v=1.7.1-211222:2:29254)
at l (jquery-3.5.1.min.js?v=1.7.1-211222:2:80295)
at XMLHttpRequest. (jquery-3.5.1.min.js?v=1.7.1-211222:2:82760)
Clicando-se na linha do erro, fica destacado o seguinte
var userName = userNameElement.html().trim();
no bloco abaixo:
limitNameSizeIfTooLarge: function() {
var userNameElement = $(".profile-title");
var userName = userNameElement.html().trim();
var MAX_USERNAME_LENGTH = 40;
if (userName.length > MAX_USERNAME_LENGTH) {
userNameElement.html(userName.substring(0, MAX_USERNAME_LENGTH) + "[...]");
}
},
Não consegui ter uma pista. Alguém já passou por isto, pode me dar uma dica?