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
}
vits = {
name: "Imported VITS",
files: risuext.vits,
id: uuidv4().replace(/-/g, '')
if(keys.length > 0){
vits = {
name: "Imported VITS",
files: risuext.vits,
id: uuidv4().replace(/-/g, '')
}
}