1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

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

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 => {