From 63f7fd3bf25e9b155b67082279615ead2963bdb7 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 30 Aug 2023 15:50:57 +0100 Subject: [PATCH] Remove duplicate code for deleting viewId from rows before deletion --- packages/frontend-core/src/components/grid/stores/viewV2.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/frontend-core/src/components/grid/stores/viewV2.js b/packages/frontend-core/src/components/grid/stores/viewV2.js index 8f0e07c0de..b9a4bc099b 100644 --- a/packages/frontend-core/src/components/grid/stores/viewV2.js +++ b/packages/frontend-core/src/components/grid/stores/viewV2.js @@ -33,10 +33,6 @@ export const createActions = context => { } const deleteRows = async rows => { - // Ensure we delete _viewId from rows as otherwise this throws a 500 - rows?.forEach(row => { - delete row?._viewId - }) await API.deleteRows({ tableId: get(datasource).id, rows,