Commit 9f1dc904 authored by Mark Harding's avatar Mark Harding

(fix): if incorrect urn requested, still return the entity

parent a344dd4e
No related merge requests found
Pipeline #70492842 running with stages
......@@ -79,7 +79,14 @@ export class EntitiesService {
this.entities.set(urn, new BehaviorSubject(null));
this.fetch([ urn ]); // Update in the background
this.fetch([ urn ]) // Update in the background
.then((response: any) => {
const entity = response.entities[0];
if (entity.urn !== urn) { // urns may differn so fix this
entity.urn = urn;
this.addEntity(entity);
}
});
return this.entities.get(urn);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment