fix(umkm): use KategoriProdukUmkm in KPI and fix product detail description - bump to 0.1.39
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "desa-darmasaba",
|
||||
"version": "0.1.38",
|
||||
"version": "0.1.39",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -63,7 +63,7 @@ async function umkmDashboardKpi(context: Context) {
|
||||
}
|
||||
|
||||
if (topCategoryId) {
|
||||
const kategori = await prisma.kategoriProduk.findUnique({
|
||||
const kategori = await prisma.kategoriProdukUmkm.findUnique({
|
||||
where: { id: topCategoryId },
|
||||
select: { nama: true },
|
||||
});
|
||||
|
||||
@@ -174,7 +174,10 @@ function DetailProdukPasarUser() {
|
||||
{data.stok > 0 ? `Stok: ${data.stok}` : 'Stok Habis'}
|
||||
</Badge>
|
||||
|
||||
<Text>{data.deskripsi}</Text>
|
||||
<Text
|
||||
style={{ wordBreak: 'break-word' }}
|
||||
dangerouslySetInnerHTML={{ __html: data.deskripsi || '-' }}
|
||||
/>
|
||||
|
||||
<Button
|
||||
leftSection={<IconShoppingCart />}
|
||||
|
||||
Reference in New Issue
Block a user