mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
fix(services): Empty environment variables are not maintained (#836)
This commit is contained in:
parent
5b81b35bf8
commit
4ff7ee4e60
2 changed files with 2 additions and 2 deletions
|
@ -324,7 +324,7 @@ function ($scope, $stateParams, $state, $location, $anchorScroll, Service, Servi
|
|||
if (env) {
|
||||
var variables = [];
|
||||
env.forEach(function(variable) {
|
||||
if (variable.key && variable.key !== '' && variable.value && variable.value !== '') {
|
||||
if (variable.key && variable.key !== '') {
|
||||
variables.push(variable.key + '=' + variable.value);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue