Skip to content

Commit

Permalink
#2110 - fix getnongroupitems method
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Permiakov authored and Stanislav Permiakov committed Feb 14, 2023
1 parent 55ed7f6 commit f6db8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ketcher-react/src/script/editor/shared/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function mergeBondsParams(struct1, bond1, struct2, bond2) {
*/
function getOnlyNonGroupItems(items, struct) {
const atoms =
items.atoms?.filter((key) => struct.getGroupIdFromAtomId(key)) === null ||
items.atoms?.filter((key) => struct.getGroupIdFromAtomId(key) === null) ||
[]
const bonds =
items.bonds?.filter((key) => struct.getGroupIdFromBondId(key)) === null ||
items.bonds?.filter((key) => struct.getGroupIdFromBondId(key) === null) ||
[]

return { atoms, bonds }
Expand Down

0 comments on commit f6db8b2

Please sign in to comment.