Remove duplicate code for deleting viewId from rows before deletion

This commit is contained in:
Andrew Kingston 2023-08-30 15:50:57 +01:00
parent 230138d540
commit 63f7fd3bf2
1 changed files with 0 additions and 4 deletions

View File

@ -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,