File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1402,8 +1402,10 @@ var qm = {
1402
1402
return a ;
1403
1403
} ,
1404
1404
removeDuplicatesByProperty : function ( myArr , prop ) {
1405
- return myArr . filter ( ( obj , pos , arr ) => {
1406
- return arr . map ( mapObj => mapObj [ prop ] ) . indexOf ( obj [ prop ] ) === pos ;
1405
+ return myArr . filter ( function ( obj , pos , arr ) {
1406
+ return arr . map ( function ( mapObj ) {
1407
+ return mapObj [ prop ]
1408
+ } ) . indexOf ( obj [ prop ] ) === pos ;
1407
1409
} ) ;
1408
1410
} ,
1409
1411
removeDuplicatesById : function ( arr , type ) {
@@ -8689,6 +8691,10 @@ var qm = {
8689
8691
} ,
8690
8692
toast : {
8691
8693
errorAlert : function ( errorMessage , callback ) {
8694
+ if ( typeof Swal === "undefined" ) {
8695
+ console . error ( "Swal not defined to show errorAlert for: " + errorMessage )
8696
+ return ;
8697
+ }
8692
8698
var Toast = Swal . mixin ( {
8693
8699
toast : true ,
8694
8700
icon : "error" ,
You can’t perform that action at this time.
0 commit comments