Update deleting rows from views
This commit is contained in:
parent
4bfa0d8cb0
commit
123be842fb
|
@ -33,8 +33,12 @@ export const createActions = context => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteRows = async rows => {
|
const deleteRows = async rows => {
|
||||||
await API.viewV2.deleteRows({
|
// Ensure we delete _viewId from rows as otherwise this throws a 500
|
||||||
viewId: get(datasource).id,
|
rows?.forEach(row => {
|
||||||
|
delete row?._viewId
|
||||||
|
})
|
||||||
|
await API.deleteRows({
|
||||||
|
tableId: get(datasource).id,
|
||||||
rows,
|
rows,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue