File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
16
16
} from '../../redux/reducers/slice/appStateSlice' ;
17
17
import { emitEvent } from '../../helperFunctions/socket' ;
18
18
19
- function DirectChildHTMLNestable ( {
19
+ function SeparatorChild ( {
20
20
childId,
21
21
type,
22
22
typeId,
@@ -165,4 +165,4 @@ function DirectChildHTMLNestable({
165
165
) ;
166
166
}
167
167
168
- export default DirectChildHTMLNestable ;
168
+ export default SeparatorChild ;
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ const validateNewParent = (
18
18
nestedParent = false
19
19
) : boolean => {
20
20
for ( const element of array ) {
21
- if ( element . childId === toTargetParentId && nestedChild === true )
21
+ if (
22
+ element . childId === toTargetParentId &&
23
+ nestedChild === true &&
24
+ element . typeId > 1000 // check if not a separator (1000) or previously dragged component (> 1000)
25
+ )
22
26
return ( nestedParent = true ) ;
23
27
else if (
24
28
element . childId === currentChildId &&
You can’t perform that action at this time.
0 commit comments