Skip to content

Commit ee5f484

Browse files
committed
removed Draggable from state
1 parent efde5d5 commit ee5f484

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/reducers/componentReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const initialApplicationFocusChild =
9999
width: 600,
100100
height: 400,
101101
},
102-
draggable: true,
102+
// draggable: true,
103103
}
104104

105105
const initialApplicationState = {

src/utils/componentReducer.util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const initialComponentState = {
88
title: '',
99
parentIds: [],
1010
color: getColor(),
11-
draggable: true,
11+
//draggable: true,
1212
childrenIds: [],
1313
selectableParents: [],
1414
expanded: true,
@@ -113,7 +113,7 @@ export const addChild = (state, { title }) => {
113113
width: parentComponent.position.width * 0.9, // new children have an initial position of their parentComponent (maybe don't need 90%)
114114
height: parentComponent.position.height * 0.9,
115115
},
116-
draggable: true,
116+
// draggable: true,
117117
color: parentComponent.color,
118118
// ancestors: [focusComponent]
119119
};

0 commit comments

Comments
 (0)