Skip to content

Commit

Permalink
Hey there was already a helper for this
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Aug 17, 2023
1 parent 65d562b commit 13b4d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/18198.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: trim variable path names before saving
```
2 changes: 1 addition & 1 deletion ui/app/helpers/trim-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 13b4d98

Please sign in to comment.