mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
guard against invalid team info
This commit is contained in:
parent
92c814e49d
commit
abc9466abe
@ -92,7 +92,12 @@ define([
|
||||
if (!obj || obj.error) { return; }
|
||||
Object.keys(obj || {}).forEach(function (id) {
|
||||
var t = obj[id];
|
||||
var _keys = t.keys.drive || {};
|
||||
var _keys = {};
|
||||
try {
|
||||
_keys = t.keys.drive || {};
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
_keys.id = id;
|
||||
if (!_keys.edPrivate) { return; }
|
||||
keys.push(t.keys.drive);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user