File tree 1 file changed +7
-2
lines changed
src/dashboard/Data/Browser
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,8 @@ class Browser extends DashboardView {
835
835
for ( const objectId in this . state . selection ) {
836
836
objectIds . push ( objectId ) ;
837
837
}
838
- const query = new Parse . Query ( this . props . params . className ) ;
838
+ const className = this . props . params . className ;
839
+ const query = new Parse . Query ( className ) ;
839
840
query . containedIn ( 'objectId' , objectIds ) ;
840
841
const objects = await query . find ( { useMasterKey : true } ) ;
841
842
const toClone = [ ] ;
@@ -847,7 +848,11 @@ class Browser extends DashboardView {
847
848
this . setState ( {
848
849
selection : { } ,
849
850
data : [ ...toClone , ...this . state . data ] ,
850
- showCloneSelectedRowsDialog : false
851
+ showCloneSelectedRowsDialog : false ,
852
+ counts : {
853
+ ...this . state . counts ,
854
+ [ className ] : this . state . counts [ className ] + toClone . length
855
+ }
851
856
} ) ;
852
857
} catch ( error ) {
853
858
this . setState ( {
You can’t perform that action at this time.
0 commit comments