Fix import module checking
This commit is contained in:
@@ -38,10 +38,10 @@ export async function importModule(){
|
|||||||
if(importData.type === 'risuModule'){
|
if(importData.type === 'risuModule'){
|
||||||
if(
|
if(
|
||||||
(!importData.name)
|
(!importData.name)
|
||||||
|| (!importData.description)
|
|
||||||
|| (!importData.id)
|
|| (!importData.id)
|
||||||
){
|
){
|
||||||
alertError(language.errors.noData)
|
alertError(language.errors.noData)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
importData.id = v4()
|
importData.id = v4()
|
||||||
db.modules.push(importData)
|
db.modules.push(importData)
|
||||||
|
|||||||
Reference in New Issue
Block a user