fix(notification): fix error in kube application stack name with space EE-1726 (#5690)
* fix error in kube application stack name with spacepull/5698/head
parent
f10e0e4124
commit
488d86d200
|
@ -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…
Reference in New Issue