Fix re_id type mismatch in transaction list update after save
PHP returns re_id as string, JS transactions use number — use == instead of ===. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1362,7 +1362,7 @@ export default {
|
||||
let updated = resp.data.updated_trx
|
||||
console.log('[savefisik] updated_trx:', updated)
|
||||
let transactions = [...context.state.transactions]
|
||||
let idx = _.findIndex(transactions, t => t.re_id === updated.re_id)
|
||||
let idx = _.findIndex(transactions, t => t.re_id == updated.re_id)
|
||||
console.log('[savefisik] idx in transactions:', idx)
|
||||
if (idx !== -1) {
|
||||
transactions[idx] = { ...transactions[idx], ...updated }
|
||||
|
||||
Reference in New Issue
Block a user