File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,20 @@ function CuratePageLeftSidebarComponent(props: CuratePageLeftSidebarComponentPro
117
117
118
118
const onCurationDragDrop = ( ) => {
119
119
if ( draggedCuration !== '' && dragGroupTarget !== undefined ) {
120
- dispatch ( curateActions . changeGroup ( {
121
- folder : draggedCuration ,
122
- group : dragGroupTarget
123
- } ) ) ;
120
+ if ( curate . selected . includes ( draggedCuration ) ) {
121
+ for ( const folder of curate . selected ) {
122
+ dispatch ( curateActions . changeGroup ( {
123
+ folder : folder ,
124
+ group : dragGroupTarget
125
+ } ) ) ;
126
+ }
127
+ } else {
128
+ dispatch ( curateActions . changeGroup ( {
129
+ folder : draggedCuration ,
130
+ group : dragGroupTarget
131
+ } ) ) ;
132
+ }
133
+
124
134
}
125
135
setDraggedCuration ( '' ) ;
126
136
setDragGroupTarget ( undefined ) ;
You can’t perform that action at this time.
0 commit comments