From 71f10f55c7ea520a18ff82be890fe924a77fe381 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 12 Jul 2021 07:34:50 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 453590b6f3..fee7a3d0ff 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -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) {