Fix row deletion and fetching for tables

This commit is contained in:
Andrew Kingston 2023-07-28 16:01:18 +01:00
parent d83820b583
commit c7c9bd6563
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ export const createActions = context => {
// Fetches a row by ID using the search endpoint
const fetchRow = async id => {
const res = await API.searchTable({
tableId: get(tableId),
tableId: get(datasource).tableId,
limit: 1,
query: {
equal: {
@ -442,7 +442,7 @@ export const createActions = context => {
delete row.__idx
})
await API.deleteRows({
tableId: get(tableId),
tableId: get(datasource).tableId,
rows: rowsToDelete,
})