Skip to content
Snippets Groups Projects
Commit c50e43cb authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Wot: Fix infinite loop when searching on unknown uid - fix #854

parent e558e5ae
No related branches found
No related tags found
No related merge requests found
......@@ -650,9 +650,11 @@ angular.module('cesium.wot.services', ['ngApi', 'cesium.bma.services', 'cesium.c
if (!pubkey && uid && !options.force) {
return BMA.wot.member.getByUid(uid)
.then(function(member) {
if (member) return loadData(member.pubkey, member.uid, options); // recursive call
if (member) return loadData(member.pubkey, member.uid, options); // recursive call, with a pubkey
//throw {message: 'NOT_A_MEMBER'};
return loadData(pubkey, uid, angular.copy(options, {force: true}));
var options = angular.copy(options || {});
options.force = true;
return loadData(pubkey, uid, options); // Loop with force=true
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment