File tree 1 file changed +14
-9
lines changed
src/dashboard/Data/Browser
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -821,15 +821,20 @@ class Browser extends DashboardView {
821
821
for ( const object of objects ) {
822
822
toClone . push ( object . clone ( ) ) ;
823
823
}
824
- await Parse . Object . saveAll ( toClone , { useMasterKey : true } ) ;
825
- this . setState ( {
826
- selection : { } ,
827
- data : [
828
- ...toClone ,
829
- ...this . state . data ,
830
- ] ,
831
- showCloneSelectedRowsDialog : false ,
832
- } ) ;
824
+ try {
825
+ await Parse . Object . saveAll ( toClone , { useMasterKey : true } ) ;
826
+ this . setState ( {
827
+ selection : { } ,
828
+ data : [ ...toClone , ...this . state . data ] ,
829
+ showCloneSelectedRowsDialog : false
830
+ } ) ;
831
+ } catch ( error ) {
832
+ this . setState ( {
833
+ selection : { } ,
834
+ showCloneSelectedRowsDialog : false
835
+ } ) ;
836
+ this . showNote ( error . message , true ) ;
837
+ }
833
838
}
834
839
835
840
getClassRelationColumns ( className ) {
You can’t perform that action at this time.
0 commit comments