v1.0.0-030 — Perbaikan Runtime TypeError month_inflow pada VibesChat
Perbaikan bug crash runtime TypeError: Cannot read properties of undefined (reading 'month_inflow') pada halaman VibesChat AI Assistant.
1mnt baca
- Memperbarui komponen
VibesChat.tsx. - Menghapus seluruh pembacaan langsung properti yang belum aman (
widgets.top_selling.slice(0, 3),widgets.top_selling.length,widgets.forecast_depletion.items,widgets.macro_news.map). - Membuat variabel safe getters tingkat teratas (
topSelling,forecastDepletion,forecastItems,macroNews,monthInflow,monthOutflow,currentBalance) dengan fallback array/objek kosong. - Mencegah error runtime
TypeError: Cannot read properties of undefined (reading 'slice')danmonth_inflowsaat membuka menu Bisnis Insight ➔ AI Assistant / VibesChat.
- Membuat migrasi Alembic
sajen/migrations/versions/e8492040fbc9_add_all_enum_values_to_transactiontype.pyuntuk mengupdate tipe ENUMtransactiontypedi PostgreSQL database (CAPITAL_WITHDRAWAL,CAPITAL_RECLASSIFICATION,CUSTOMER_DEPOSIT,CUSTOMER_WITHDRAWAL,PURCHASE_RETURN,SALES_RETURN). - Menjalankan penyemaian data
python -m app.seed_psak_completepada database VPS server untuk memasukkan aturan jurnal ke tabeljournal_mappings&journal_mapping_lines. - Menjamin usulan entri jurnal (Debet
2-1206/ Kredit1-1101) untuk kalimat Smart Note penarikan tabungan pelanggan 100% dibaca secara dinamis dari database tanpa hardcode.
- Typecheck (
tsc -b): Clean (0 error). - Vite Production Build (
vite build): Clean (0 error).