fix(pos-updates): multi selection drag

This commit is contained in:
moklick
2021-12-02 22:24:34 +01:00
parent f6b8bfb6be
commit ebd5a5f0a0

View File

@@ -137,7 +137,7 @@ export default function reactFlowReducer(state = initialState, action: ReactFlow
const { id, diff, isDragging } = action.payload;
const nextNodes = state.nodes.map((node) => {
if (id === node.id || (id == null && state.selectedElements?.find((sNode) => sNode.id === node.id))) {
if (id === node.id || state.selectedElements?.find((sNode) => sNode.id === node.id)) {
const updatedNode = {
...node,
__rf: {