From 25a2e02a90acf6b07b71dce4cde62d4899ce7cdd Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 26 Sep 2024 15:40:25 +0100 Subject: [PATCH] Remove needless table copy. --- packages/server/src/api/controllers/row/internal.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/server/src/api/controllers/row/internal.ts b/packages/server/src/api/controllers/row/internal.ts index f5cb42f81d..bb9de6ce52 100644 --- a/packages/server/src/api/controllers/row/internal.ts +++ b/packages/server/src/api/controllers/row/internal.ts @@ -53,11 +53,8 @@ export async function patch(ctx: UserCtx) { combinedRow[key] = inputs[key] } - // need to copy the table so it can be differenced on way out - const tableClone = cloneDeep(table) - // this returns the table and row incase they have been updated - let row = await inputProcessing(ctx.user?._id, tableClone, combinedRow) + let row = await inputProcessing(ctx.user?._id, source, combinedRow) const validateResult = await sdk.rows.utils.validate({ row, source,