Fixing issue with persistent user data
This commit is contained in:
1 parent
e93c18c28f
commit
4c5dcfeab0
1 file changed
+1
-1
@@ -25,7 +25,7 @@ OHIF.user.getData = key => {
|
||||
let result = data;
|
||||
const keys = key.split('.');
|
||||
keys.forEach(key => {
|
||||
if (typeof result !== 'object') return;
|
||||
if (typeof result !== 'object' || !result) return;
|
||||
result = result[key];
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user