account for empty user id in automations
This commit is contained in:
parent
e2167c1d62
commit
4700b24793
|
@ -10,7 +10,7 @@ context("Create Bindings", () => {
|
|||
addSettingBinding("text", "Current User._id")
|
||||
cy.getComponent(componentId).should(
|
||||
"have.text",
|
||||
`ro_ta_users_us_test@test.com`
|
||||
`ro_ta_users_test@test.com`
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -150,7 +150,7 @@ exports.save = async function(ctx) {
|
|||
|
||||
// this returns the table and row incase they have been updated
|
||||
const dbTable = await db.get(inputs.tableId)
|
||||
let { table, row } = inputProcessing(ctx.user, dbTable, inputs)
|
||||
let { table, row } = inputProcessing(ctx.user || {}, dbTable, inputs)
|
||||
const validateResult = await validate({
|
||||
row,
|
||||
table,
|
||||
|
|
Loading…
Reference in New Issue