fix(umkm): fix TypeError, 404 API URL, and Recharts warnings

This commit is contained in:
2026-04-21 12:23:22 +08:00
parent ece84fabf0
commit a2d157ee02
8 changed files with 86 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Prisma } from "@prisma/client";
import { toast } from "react-toastify";
import { proxy } from "valtio";
import { z } from "zod";
@@ -244,7 +243,7 @@ export const umkmState = proxy({
async load() {
this.loading = true;
try {
const res = await fetch("/api/ekonomi/pasar-desa/kategori-produk/find-many-all");
const res = await fetch("/api/ekonomi/kategoriproduk/find-many-all");
const result = await res.json();
if (result.success) {
this.data = result.data;