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 95af460..8562f7b 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 @@ -1357,15 +1357,20 @@ export default { context.commit("update_dialog_action", false) var msg = "Order " + prm.trx_numbering + " pemeriksaan " + prm.trx.test_name + " berhasil diupdate dong ..." context.commit("update_msg_success", msg) + console.log('[savefisik] resp.data:', resp.data) if (resp.data && resp.data.updated_trx) { 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) + console.log('[savefisik] idx in transactions:', idx) if (idx !== -1) { transactions[idx] = { ...transactions[idx], ...updated } context.commit("update_transactions", transactions) } context.commit("update_cantedit", updated.status_name !== 'BARU') + } else { + console.warn('[savefisik] updated_trx not found in response') } context.commit("update_dialog_success", true) if (context.state.search_lab_no !== '') {