Fix importSpecv2 function in characterCards.ts

This commit is contained in:
kwaroran
2024-01-21 10:47:18 +09:00
parent 608f29ba13
commit aa0fe45a48

View File

@@ -307,10 +307,12 @@ async function importSpecv2(card:CharacterCardV2, img?:Uint8Array, mode:'hub'|'n
risuext.vits[key] = imgp risuext.vits[key] = imgp
} }
vits = { if(keys.length > 0){
name: "Imported VITS", vits = {
files: risuext.vits, name: "Imported VITS",
id: uuidv4().replace(/-/g, '') files: risuext.vits,
id: uuidv4().replace(/-/g, '')
}
} }