mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Trim variable path before save (#18198)
This commit is contained in:
3
.changelog/18198.txt
Normal file
3
.changelog/18198.txt
Normal file
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user