File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 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 {
821821 for ( const object of objects ) {
822822 toClone . push ( object . clone ( ) ) ;
823823 }
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+ }
833838 }
834839
835840 getClassRelationColumns ( className ) {
You can’t perform that action at this time.
0 commit comments