Skip to content

Commit

Permalink
Merge branch 'develop' into feature/getVariableCategoryName
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepsinn authored Sep 29, 2020
2 parents b28b985 + bdf14d7 commit e03cab8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,10 @@ var qm = {
return a;
},
removeDuplicatesByProperty: function(myArr, prop) {
return myArr.filter((obj, pos, arr) => {
return arr.map(mapObj => mapObj[prop]).indexOf(obj[prop]) === pos;
return myArr.filter(function(obj, pos, arr) {
return arr.map(function(mapObj){
return mapObj[prop]
}).indexOf(obj[prop]) === pos;
});
},
removeDuplicatesById: function(arr, type) {
Expand Down Expand Up @@ -8689,6 +8691,10 @@ var qm = {
},
toast: {
errorAlert: function(errorMessage, callback){
if(typeof Swal === "undefined"){
console.error("Swal not defined to show errorAlert for: "+errorMessage)
return;
}
var Toast = Swal.mixin({
toast: true,
icon: "error",
Expand Down

2 comments on commit e03cab8

@mikepsinn
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View recording of ionic_reminders_spec.js
Cypress Dashboard

ionic_reminders-ionic

BUILD LOG

@mikepsinn
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

View recording of ionic_variables_spec.js
Cypress Dashboard

ionic_variables-ionic

BUILD LOG

Please sign in to comment.