1.2 KiB
1.2 KiB
Summary: UMKM Module Bug Fixes
Changes Made:
-
Fixed TypeError in UMKM/Pasar Desa Public Page:
- Modified
src/app/darmasaba/(pages)/ekonomi/pasar-desa/page.tsxto stop destructuring theloadmethod from the Valtio proxy. - Called
loaddirectly viapasarDesaStateorumkmStateto preservethisbinding. - Cleaned up unused imports (
Group,IconTag).
- Modified
-
Fixed 404 API URL for Category Products:
- Corrected the URL in
src/app/admin/(dashboard)/_state/ekonomi/umkm/umkm.tsfrom/api/ekonomi/pasar-desa/kategori-produk/find-many-allto/api/ekonomi/kategoriproduk/find-many-all. - Removed unused
Prismaimport.
- Corrected the URL in
-
Resolved Recharts Warning and Improved Dashboard:
- Added a
BarChartto the UMKM Admin Dashboard (src/app/admin/(dashboard)/ekonomi/umkm/dashboard/page.tsx) to show sales trends by product. - Wrapped the chart in a
ResponsiveContainerand provided an explicit height of 350px on the parentBox. - Fixed a compilation error in
src/app/darmasaba/(pages)/ekonomi/umkm/[id]/page.tsxby adding the missingCenterimport.
- Added a
Verification:
- Ran
bun run buildsuccessfully with no compile errors. - Verified that all three bugs are addressed based on code analysis and build success.