mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 00:04:10 +00:00
fix(frontend): invalid username for superadmin in some workspaces (#5350)
This commit is contained in:
@@ -118,7 +118,9 @@
|
||||
}
|
||||
Object.assign(flow, template)
|
||||
const oldPath = templatePath.split('/')
|
||||
initialPath = `u/${$userStore?.username.split('@')[0]}/${oldPath[oldPath.length - 1]}_fork`
|
||||
initialPath = `u/${$userStore?.username.split('@')[0].replace(/[^a-zA-Z0-9_]/g, '')}/${
|
||||
oldPath[oldPath.length - 1]
|
||||
}_fork`
|
||||
flow = flow
|
||||
goto('?', { replaceState: true })
|
||||
selectedId = 'settings-metadata'
|
||||
|
||||
Reference in New Issue
Block a user