Merge pull request #11672 from Budibase/fix/relationship-toast
Fix/relationship toast
This commit is contained in:
commit
0875b9e30a
|
@ -290,11 +290,11 @@
|
|||
datasource.entities[getTable(toId).name].schema[toRelationship.name] =
|
||||
toRelationship
|
||||
|
||||
await save()
|
||||
await save({ action: "saved" })
|
||||
}
|
||||
async function deleteRelationship() {
|
||||
removeExistingRelationship()
|
||||
await save()
|
||||
await save({ action: "deleted" })
|
||||
await tables.fetch()
|
||||
close()
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
|
||||
// action is one of 'created', 'updated' or 'deleted'
|
||||
async function saveRelationship(action) {
|
||||
async function saveRelationship({ action }) {
|
||||
try {
|
||||
await beforeSave({ action, datasource })
|
||||
|
||||
|
|
Loading…
Reference in New Issue