diff --git a/package-lock.json b/package-lock.json index 9b9fe324c6..bc9bde4371 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@angular/core": { - "version": "11.2.9", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-11.2.9.tgz", - "integrity": "sha512-OLW8ThHdG5XjE9PMdBWyAm19wXEjuhWAB19qCqNerKkk1RGEOn+ISUR5Rpg5Fh3rlI4nFOm+WeOUIaq9uxF53A==", + "version": "11.2.12", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-11.2.12.tgz", + "integrity": "sha512-YnHzPNFZIfeIUJrVz+AJSNzufshzVIL3qg9CvKIUQPIjiQt2wxGLSi9KHEupxLrxfdh9gZ3C0gc8weASSkbQpg==", "dev": true, "requires": { "tslib": "^2.0.0" @@ -33877,9 +33877,9 @@ } }, "sweetalert2": { - "version": "10.16.0", - "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-10.16.0.tgz", - "integrity": "sha512-qJp4nIpx0MPDnAdY6MurwH/mAovfCzWo07hFoQ41C46XGLpNkxiqBbJDNdhGfMFwbDY1e9jfttNFxe5IsrkEtA==" + "version": "10.16.7", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-10.16.7.tgz", + "integrity": "sha512-8w7UMU+joJro3r7CyyqLOK5Agc0/TI2OqC2T8odOOYRKbPvq2Bq9GF3HoQT2tFnjiqP5QEpVugayowoIl2ZlWw==" }, "symbol-observable": { "version": "1.2.0", diff --git a/package.json b/package.json index e036490d1e..3ba953c7d7 100644 --- a/package.json +++ b/package.json @@ -176,7 +176,7 @@ "simple-git": "1.126.0", "superagent": "6.1.0", "sw-precache": "5.2.1", - "sweetalert2": "10.16.0", + "sweetalert2": "10.16.7", "taco-team-build": "0.2.5", "time-require": "0.1.2", "ts-node": "8.5.4", diff --git a/src/js/services/qmService.js b/src/js/services/qmService.js index 1e53ad5e2e..1e922f8cd2 100644 --- a/src/js/services/qmService.js +++ b/src/js/services/qmService.js @@ -307,8 +307,7 @@ angular.module('starter').factory('qmService', ["$http", "$q", "$rootScope", "$i showErrorAlertMessageOrSendToLogin: function(title, errorMessage){ if(errorMessage){ if(typeof errorMessage !== "string"){ - qmLog.error('errorMessage is not a string and is type '+typeof errorMessage+": "+JSON.stringify(errorMessage)); - return; + errorMessage = JSON.stringify(errorMessage); } if(errorMessage.toLowerCase().indexOf('unauthorized') !== -1){ qm.auth.setAfterLoginGoToUrlAndSendToLogin(title + ": " + errorMessage);