Commit b2fca13d authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: error on delete elements

parent 778cb2ae
Pipeline #106672 passed with stages
in 9 minutes and 31 seconds
......@@ -32,7 +32,7 @@ export default {
for (let i = 0; i < obj.length; i++) {
let app = {name: `${obj[i].object_fq_name}.${obj[i].object_function}`}
if (Object.keys(obj[i].parameters.old).length > 0) {
app['old'] = transactionutil.filter_old_data(obj[i].object_functions[obj[i].object_function].parameters, obj[i].parameters.old)
app['old'] = obj[i].object_functions === null ? obj[i].parameters.old : transactionutil.filter_old_data(obj[i].object_functions[obj[i].object_function].parameters, obj[i].parameters.old)
}
if (Object.keys(obj[i].parameters.new).length > 0) {
app['new'] = transactionutil.filter_unchanged_data(obj[i].parameters.new, obj[i].parameters.old)
......@@ -42,8 +42,8 @@ export default {
return res
},
getAPIErrorIndexFromDBException(e) {
for(let t of e.traceback) {
if('param' in t && 'wapi.transaction_stmt.index' in t.param) {
for (let t of e.traceback) {
if ('param' in t && 'wapi.transaction_stmt.index' in t.param) {
return t.param['wapi.transaction_stmt.index']
}
}
......
......@@ -57,6 +57,7 @@ export default {
ta['uuid'] = uuidv4()
ta['object_fq_name'] = object_fq_name
ta['object_function'] = 'delete'
ta['object_functions'] = null
ta['object_title'] = title
return ta
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment