invalid path when creating from hub template (#7798)

This commit is contained in:
Alexander Petric
2026-02-04 23:42:32 +00:00
committed by GitHub
parent 8799090942
commit 35c9a09052
+2 -2
View File
@@ -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