1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Fixing an issue where linked record column deletion was not correctly removing relationships.

This commit is contained in:
Michael Drury 2020-10-14 20:05:13 +01:00
parent 7613692379
commit 94ceff1bbd

View file

@ -36,7 +36,10 @@ exports.save = async function(ctx) {
let renameDocs = []
// if the table obj had an _id then it will have been retrieved
const oldTable = ctx.preExisting
let oldTable
if (ctx.request.body && ctx.request.body._id) {
oldTable = await db.get(ctx.request.body._id)
}
// rename row fields when table column is renamed
const { _rename } = tableToSave