1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

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

* fix error in kube application stack name with space
This commit is contained in:
Richard Wei 2021-09-21 20:58:23 +12:00 committed by GitHub
parent 4267304e50
commit 48c762c98b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;