mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 00:02:30 +00:00
invalid path when creating from hub template (#7798)
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
}
|
||||
|
||||
export async function reset() {
|
||||
if (path == '' || path == 'u//' || path?.startsWith('tmp/')) {
|
||||
if (path == '' || path == 'u//' || path?.startsWith('tmp/') || path?.startsWith('hub/')) {
|
||||
if ($lastMetaUsed == undefined || $lastMetaUsed.owner != $userStore?.username) {
|
||||
meta = {
|
||||
ownerKind: hideUser ? 'folder' : 'user',
|
||||
@@ -323,7 +323,7 @@
|
||||
|
||||
async function initPath() {
|
||||
await tick()
|
||||
if (path != undefined && path != '' && !path?.startsWith('tmp/')) {
|
||||
if (path != undefined && path != '' && !path?.startsWith('tmp/') && !path?.startsWith('hub/')) {
|
||||
meta = pathToMeta(path, hideUser)
|
||||
onMetaChange()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user