Skip to content

Commit b4bb646

Browse files
authored
fix(hosting frontend): fix zip extraction (#7432)
1 parent ce78cdf commit b4bb646

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/ui/src/layouts/wrapped/hosting/manage

packages/ui/src/layouts/wrapped/hosting/manage/files.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ const createMutation = useMutation({
347347
// Extraction
348348
async function extractFile(path: string, override: boolean, dry: boolean) {
349349
if (fileWriteDisabled.value) return
350-
const target = path.slice(0, path.lastIndexOf('/')) || '/'
350+
const target = path.replace(/\.zip$/i, '')
351351
if (dry) {
352352
return await client.kyros.files_v0.extractFile(path, override, true, target)
353353
}

0 commit comments

Comments
 (0)