fix(secret-creation): prevent assignment of label with no name (#2838)
This commit is contained in:
@@ -14,7 +14,9 @@ angular.module('portainer.docker')
|
||||
var labels = {};
|
||||
if (labelKV) {
|
||||
labelKV.forEach(function(label) {
|
||||
labels[label.key] = label.value;
|
||||
if (label.key) {
|
||||
labels[label.key] = label.value;
|
||||
}
|
||||
});
|
||||
}
|
||||
return labels;
|
||||
|
||||
Reference in New Issue
Block a user