Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5224 – Implement basic preview in connection modal for ambiguous monomer #5412

Conversation

svvald
Copy link
Collaborator

@svvald svvald commented Sep 2, 2024

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

@svvald svvald force-pushed the 5224-selectedit-connection-points-dialogues-for-ambiguous-monomers branch from ccea823 to 4e98bb0 Compare September 3, 2024 09:47
Comment on lines +33 to +35
if (svg) {
const svgElement = select(svg);
if (monomer instanceof AmbiguousMonomer) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be simplified like this:

if (!svg || !(monomer instanceof AmbiguousMonomer)) {
  return;
}
...

@rrodionov91 rrodionov91 merged commit cffdd3e into master Sep 3, 2024
5 checks passed
@rrodionov91 rrodionov91 deleted the 5224-selectedit-connection-points-dialogues-for-ambiguous-monomers branch September 3, 2024 12:00
@rrodionov91 rrodionov91 changed the title #5224 – Implement basic preview in connection modal for ambiguous mon… #5224 – Implement basic preview in connection modal for ambiguous monomer Sep 3, 2024
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.

"Select/Edit Connection Points" dialogues for ambiguous monomers
2 participants