fix module assets on export
This commit is contained in:
@@ -42,6 +42,7 @@ export async function exportModule(module:RisuModule){
|
|||||||
|
|
||||||
const assets = module.assets ?? []
|
const assets = module.assets ?? []
|
||||||
module = structuredClone(module)
|
module = structuredClone(module)
|
||||||
|
module.assets ??= []
|
||||||
module.assets = module.assets.map((asset) => {
|
module.assets = module.assets.map((asset) => {
|
||||||
return [asset[0], '', asset[2]] as [string,string,string]
|
return [asset[0], '', asset[2]] as [string,string,string]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user