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")
|
addSettingBinding("text", "Current User._id")
|
||||||
cy.getComponent(componentId).should(
|
cy.getComponent(componentId).should(
|
||||||
"have.text",
|
"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
|
// this returns the table and row incase they have been updated
|
||||||
const dbTable = await db.get(inputs.tableId)
|
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({
|
const validateResult = await validate({
|
||||||
row,
|
row,
|
||||||
table,
|
table,
|
||||||
|
|
Loading…
Reference in New Issue