Fixed Product Creation Error
This commit is contained in:
@@ -205,12 +205,14 @@ const createItem = async () => {
|
||||
let ret = null
|
||||
|
||||
if(props.inModal) {
|
||||
ret = await dataStore.createNewItem(type,item.value,true)
|
||||
ret = await useEntities(type).create(item.value, true)
|
||||
|
||||
} else {
|
||||
ret = await useEntities(type).create(item.value)//dataStore.createNewItem(type,item.value)
|
||||
}
|
||||
|
||||
emit('returnData', ret)
|
||||
modal.close()
|
||||
}
|
||||
|
||||
const updateItem = async () => {
|
||||
|
||||
Reference in New Issue
Block a user