This commit is contained in:
Adria Navarro 2023-09-29 11:47:23 +02:00
parent 6c9b3e33a3
commit 46a224751f
2 changed files with 1 additions and 4 deletions

View File

@ -108,13 +108,11 @@ export async function save(ctx: UserCtx) {
row, row,
}) })
const responseRow = response as { row: Row }
if (!isEqual(table, updatedTable)) { if (!isEqual(table, updatedTable)) {
await sdk.tables.saveTable(updatedTable) await sdk.tables.saveTable(updatedTable)
} }
const rowId = responseRow.row._id const rowId = response.row._id
if (rowId) { if (rowId) {
const row = await sdk.rows.external.getRow(tableId, rowId, { const row = await sdk.rows.external.getRow(tableId, rowId, {
relationships: true, relationships: true,

View File

@ -14,7 +14,6 @@ import {
Table, Table,
TableResponse, TableResponse,
UserCtx, UserCtx,
Datasource,
} from "@budibase/types" } from "@budibase/types"
import sdk from "../../../sdk" import sdk from "../../../sdk"
import { jsonFromCsvString } from "../../../utilities/csv" import { jsonFromCsvString } from "../../../utilities/csv"