fix(notification): fix error in kube application stack name with space EE-1726 (#5690)

* fix error in kube application stack name with space
pull/5698/head
Richard Wei 3 years ago committed by GitHub
parent f10e0e4124
commit 488d86d200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ angular.module('portainer.app').factory('Notifications', [
service.error = function (title, e, fallbackText) {
var msg = fallbackText;
if (e.err && e.err.data && e.err.data.details) {
if (e.err && e.err.data && e.err.data.details && typeof e.err.data.details === 'string') {
msg = e.err.data.details;
} else if (e.err && e.err.data && e.err.data.message) {
msg = e.err.data.message;

Loading…
Cancel
Save