account for empty user id in automations
This commit is contained in:
parent
508730db6b
commit
201b26059c
|
@ -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