Remove duplicate code for deleting viewId from rows before deletion
This commit is contained in:
parent
230138d540
commit
63f7fd3bf2
|
@ -33,10 +33,6 @@ export const createActions = context => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteRows = async rows => {
|
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({
|
await API.deleteRows({
|
||||||
tableId: get(datasource).id,
|
tableId: get(datasource).id,
|
||||||
rows,
|
rows,
|
||||||
|
|
Loading…
Reference in New Issue