backport of commit 13b4d98bce058c59e054f5cce9ad4175bf3c5374 (#18248)
This pull request was automerged via backport-assistant
This commit is contained in:
parent
d910457159
commit
0fb0054e60
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
ui: trim variable path names before saving
|
||||
```
|
|
@ -19,7 +19,7 @@ export function trimPath([path]) {
|
|||
if (path?.endsWith('/')) {
|
||||
path = trimPath([path.slice(0, -1)]);
|
||||
}
|
||||
return path;
|
||||
return path.trim();
|
||||
}
|
||||
|
||||
export default Helper.helper(trimPath);
|
||||
|
|
Loading…
Reference in New Issue