fix:hot topic id, mediahub thumbnail

This commit is contained in:
Rama Priyanto 2025-05-16 14:48:29 +07:00
parent a26c6fdd73
commit b998e43306
2 changed files with 4 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export default function HeaderNews() {
limit: "10",
sortBy: "view_count",
sort: "desc",
category: "586",
category: "1906",
isPublish: true,
};
const response = await getListArticle(req);

View File

@ -170,7 +170,7 @@ export default function MedolUpdate() {
>
{mediahubUpdate?.map((newsItem: any) => (
<SwiperSlide
key={newsItem.title}
key={newsItem?.title}
className="hover:shadow-xl hover:opacity-90"
>
<Link href={newsItem?.pageUrl} target="_blank">
@ -185,7 +185,8 @@ export default function MedolUpdate() {
height={480}
alt="tes"
className="object-cover !h-[20vh]"
src={newsItem.thumbnailLink}
// src={newsItem.thumbnailLink}
src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`}
/>
</CardBody>
<CardFooter className="flex flex-col items-start text-left">