Skip to content
Snippets Groups Projects
Commit 47968eee authored by Alexander Rose's avatar Alexander Rose
Browse files

fix traceOnly handling in makeElementIgnoreTest

parent 6d7e4ca2
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ export function makeElementIgnoreTest(structure: Structure, unit: Unit, props: E
const childUnit = child?.unitMap.get(unit.id);
if (child && !childUnit) throw new Error('expected childUnit to exist if child exists');
if (!child && ((!ignoreHydrogens && !traceOnly) || traceOnly)) return;
if (!child && !ignoreHydrogens && !traceOnly) return;
return (element: ElementIndex) => {
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment