diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 9ad0a23616..af4826a1c4 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -4,7 +4,7 @@ import { saveRow, deleteRow, executeQuery, triggerAutomation } from "../api" import { ActionTypes } from "../constants" const saveRowHandler = async (action, context) => { - const { fields, providerId } = action.parameters + const { fields, providerId, tableId } = action.parameters if (providerId) { let draft = context[providerId] if (fields) { @@ -12,6 +12,9 @@ const saveRowHandler = async (action, context) => { draft[field] = value } } + if (tableId) { + draft.tableId = tableId + } await saveRow(draft) } }