Fixing issue with persistent user data

This commit is contained in:
Bruno Alves de Faria 2017-09-19 10:30:22 -03:00
parent e93c18c28f
commit 4c5dcfeab0

View File

@ -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];
});