Fix row deletion and fetching for tables
This commit is contained in:
parent
d83820b583
commit
c7c9bd6563
|
@ -312,7 +312,7 @@ export const createActions = context => {
|
||||||
// Fetches a row by ID using the search endpoint
|
// Fetches a row by ID using the search endpoint
|
||||||
const fetchRow = async id => {
|
const fetchRow = async id => {
|
||||||
const res = await API.searchTable({
|
const res = await API.searchTable({
|
||||||
tableId: get(tableId),
|
tableId: get(datasource).tableId,
|
||||||
limit: 1,
|
limit: 1,
|
||||||
query: {
|
query: {
|
||||||
equal: {
|
equal: {
|
||||||
|
@ -442,7 +442,7 @@ export const createActions = context => {
|
||||||
delete row.__idx
|
delete row.__idx
|
||||||
})
|
})
|
||||||
await API.deleteRows({
|
await API.deleteRows({
|
||||||
tableId: get(tableId),
|
tableId: get(datasource).tableId,
|
||||||
rows: rowsToDelete,
|
rows: rowsToDelete,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue