From 5ca11aa6ae908d043911544ffca314b9a03db280 Mon Sep 17 00:00:00 2001 From: Yulei Chen Date: Thu, 1 Jun 2023 12:50:42 +0800 Subject: [PATCH] #2599 - Fix unselected enhanced flag rotating --- .../ketcher-core/src/application/editor/actions/rotate.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/ketcher-core/src/application/editor/actions/rotate.ts b/packages/ketcher-core/src/application/editor/actions/rotate.ts index 2a55b31d0a..c4f3971e54 100644 --- a/packages/ketcher-core/src/application/editor/actions/rotate.ts +++ b/packages/ketcher-core/src/application/editor/actions/rotate.ts @@ -279,10 +279,8 @@ export function fromRotate(restruct, selection, center, angle) { }) } - const stereoFlags = - selection.enhancedFlags || Array.from(restruct.enhancedFlags.keys()) - if (stereoFlags) { - stereoFlags.forEach((flagId) => { + if (selection.enhancedFlags) { + selection.enhancedFlags.forEach((flagId) => { const frId = flagId const frag = restruct.molecule.frags.get(frId) action.addOp(