Fix not properly updating row state for formula columns

This commit is contained in:
Andrew Kingston 2023-05-10 16:00:27 +01:00
parent 88c475e4cb
commit 72a64d2378
1 changed files with 2 additions and 6 deletions

View File

@ -338,15 +338,11 @@ export const deriveStores = context => {
...state,
[rowId]: true,
}))
const newRow = { ...row, ...get(rowChangeCache)[rowId] }
const saved = await API.saveRow(newRow)
const saved = await API.saveRow({ ...row, ...get(rowChangeCache)[rowId] })
// Update state after a successful change
rows.update(state => {
state[index] = {
...newRow,
_rev: saved._rev,
}
state[index] = saved
return state.slice()
})
rowChangeCache.update(state => {