backport of commit 13b4d98bce058c59e054f5cce9ad4175bf3c5374 (#18248)

This pull request was automerged via backport-assistant
This commit is contained in:
hc-github-team-nomad-core 2023-08-17 09:47:02 -05:00 committed by GitHub
parent d910457159
commit 0fb0054e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/18198.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
ui: trim variable path names before saving
```

View File

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