fix(umkm): use KategoriProdukUmkm in KPI and fix product detail description - bump to 0.1.39

This commit is contained in:
2026-04-28 16:22:55 +08:00
parent 550961d524
commit f6107e971d
3 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "desa-darmasaba", "name": "desa-darmasaba",
"version": "0.1.38", "version": "0.1.39",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",

View File

@@ -63,7 +63,7 @@ async function umkmDashboardKpi(context: Context) {
} }
if (topCategoryId) { if (topCategoryId) {
const kategori = await prisma.kategoriProduk.findUnique({ const kategori = await prisma.kategoriProdukUmkm.findUnique({
where: { id: topCategoryId }, where: { id: topCategoryId },
select: { nama: true }, select: { nama: true },
}); });

View File

@@ -174,7 +174,10 @@ function DetailProdukPasarUser() {
{data.stok > 0 ? `Stok: ${data.stok}` : 'Stok Habis'} {data.stok > 0 ? `Stok: ${data.stok}` : 'Stok Habis'}
</Badge> </Badge>
<Text>{data.deskripsi}</Text> <Text
style={{ wordBreak: 'break-word' }}
dangerouslySetInnerHTML={{ __html: data.deskripsi || '-' }}
/>
<Button <Button
leftSection={<IconShoppingCart />} leftSection={<IconShoppingCart />}