Skip to content
Snippets Groups Projects
Commit b4ff9849 authored by JonStargaryen's avatar JonStargaryen
Browse files

avoid overiding of entries for atom data

parent 8471d337
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,11 @@ export namespace ComponentAtom { ...@@ -56,7 +56,11 @@ export namespace ComponentAtom {
const entries: Map<string, Entry> = new Map(); const entries: Map<string, Entry> = new Map();
function addEntry(id: string) { function addEntry(id: string) {
let e = new Entry(id); // weird behavior when 'PRO' is requested - will report a single bond between N and H because a later operation would override real content
if (entries.has(id)) {
return entries.get(id)!;
}
const e = new Entry(id);
entries.set(id, e); entries.set(id, e);
return e; return e;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment