Skip to content

Fix empty structure editor when starting registration from a zero-hit… - #732

Merged
ChemMitch merged 1 commit into
development_3.0from
structure_search_Mitch_fix
Jul 23, 2026
Merged

Fix empty structure editor when starting registration from a zero-hit…#732
ChemMitch merged 1 commit into
development_3.0from
structure_search_Mitch_fix

Conversation

@iaromoskviak

Copy link
Copy Markdown
Collaborator

… structure search
The SMILES import in ngAfterViewInit raced against loadSubstance(), which
became async when ngOnInit started awaiting hasSpecificPrivilege() checks.
ngAfterViewInit now fired before the substance object existed, so
importStructure() silently no-op'd and the editor loaded blank.

Wait on substanceFormService.ready() instead of a bare setTimeout so the
import only runs once the substance is actually loaded.

@ChemMitch
ChemMitch merged commit f0a4ca8 into development_3.0 Jul 23, 2026
2 of 6 checks passed
@ChemMitch
ChemMitch deleted the structure_search_Mitch_fix branch July 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants