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, ...state,
[rowId]: true, [rowId]: true,
})) }))
const newRow = { ...row, ...get(rowChangeCache)[rowId] } const saved = await API.saveRow({ ...row, ...get(rowChangeCache)[rowId] })
const saved = await API.saveRow(newRow)
// Update state after a successful change // Update state after a successful change
rows.update(state => { rows.update(state => {
state[index] = { state[index] = saved
...newRow,
_rev: saved._rev,
}
return state.slice() return state.slice()
}) })
rowChangeCache.update(state => { rowChangeCache.update(state => {