Fixing issue with persistent user data
This commit is contained in:
parent
e93c18c28f
commit
4c5dcfeab0
@ -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];
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user