Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-12 07:34:50 +02:00 committed by GitHub
parent 4c11929e15
commit 71f10f55c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2866,7 +2866,7 @@ module.exports = (_ => {
var myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser();
BDFDB.UserUtils.me = new Proxy(myDataUser || {}, {
get: function (list, item) {
return (myDataUser = LibraryModules.UserStore.getCurrentUser()) && myDataUser[item];
return (myDataUser = (LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser() || {})) && myDataUser[item];
}
});
BDFDB.UserUtils.getStatus = function (id = BDFDB.UserUtils.me.id) {