diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index b1d49b0351..3a8ac63411 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -35,7 +35,7 @@ const saveRowHandler = async (action, context) => { const duplicateRowHandler = async (action, context) => { const { fields, providerId, tableId } = action.parameters if (providerId) { - let draft = context[providerId] + let draft = { ...context[providerId] } if (fields) { for (let [field, value] of Object.entries(fields)) { draft[field] = value