mirror of https://github.com/rancher/dashboard.git
Fix env var import extra empty value
This commit is contained in:
parent
09b6a60378
commit
01a86c8a06
|
|
@ -366,9 +366,12 @@ export default {
|
||||||
const lines = value.split('\n');
|
const lines = value.split('\n');
|
||||||
|
|
||||||
lines.forEach((line) => {
|
lines.forEach((line) => {
|
||||||
const [key, value] = line.split('=');
|
// Ignore empty lines
|
||||||
|
if (line.length) {
|
||||||
|
const [key, value] = line.split('=');
|
||||||
|
|
||||||
this.add(key, value);
|
this.add(key, value);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue