Changed Redirect after Create
This commit is contained in:
@@ -132,12 +132,12 @@ const totalCalculated = computed(() => {
|
||||
})
|
||||
|
||||
const createIncomingInvoice = async () => {
|
||||
const data = await dataStore.createNewItem('incominginvoices',itemInfo.value)
|
||||
|
||||
console.log(data)
|
||||
const data = await dataStore.createNewItem('incominginvoices',itemInfo.value,true)
|
||||
|
||||
const {error} = await supabase.from("files").update({incominginvoice: data.id}).eq("id",loadedFile.value.id)
|
||||
|
||||
router.push(`/incominginvoices/show/${data.id}`)
|
||||
|
||||
}
|
||||
|
||||
const setCostCentre = async (item,data) => {
|
||||
|
||||
Reference in New Issue
Block a user