From 017567827ef529502a872eba47d5442fe883f1c2 Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Tue, 12 May 2026 09:28:30 +0700 Subject: [PATCH] Fix re_id type mismatch in transaction list update after save MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP returns re_id as string, JS transactions use number — use == instead of ===. Co-Authored-By: Claude Sonnet 4.6 --- test/vuex/cpone-resultentry-so-others-v8-all/modules/sample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vuex/cpone-resultentry-so-others-v8-all/modules/sample.js b/test/vuex/cpone-resultentry-so-others-v8-all/modules/sample.js index 8562f7b..556646b 100644 --- a/test/vuex/cpone-resultentry-so-others-v8-all/modules/sample.js +++ b/test/vuex/cpone-resultentry-so-others-v8-all/modules/sample.js @@ -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 }