Trim variable path before save (#18198)

This commit is contained in:
Phil Renaud
2023-08-17 10:46:44 -04:00
committed by GitHub
parent d23ee134c5
commit ba7892d0d2
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);