-
Notifications
You must be signed in to change notification settings - Fork 174
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
#4802 - Copy/Past operation works wrong #4910
base: master
Are you sure you want to change the base?
Conversation
if (sg.atoms.some((aid) => !atomSet!.has(aid))) return; | ||
const notInGroup = sg.atoms.some((aid) => !atomSet!.has(aid)); | ||
const atomsInSet = sg.atoms.filter((aid) => atomSet!.has(aid)); | ||
if (!atomsInSet.length && notInGroup) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I'm missing something here but why do you need notInGroup
? Conditions in .some
and .filter
are mutually exclusive so if there are no elements satisfying the atomSet.has(aid)
condition, there is definitely at least one element which satisfies the inverse !atomSet.has(aid)
condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list
#1234 – issue name