diff --git a/components/landing-page/filter-all/audio-filter-card.tsx b/components/landing-page/filter-all/audio-filter-card.tsx
index b1140454..10711b42 100644
--- a/components/landing-page/filter-all/audio-filter-card.tsx
+++ b/components/landing-page/filter-all/audio-filter-card.tsx
@@ -77,11 +77,16 @@ export default function FilterAudioComponent(props: {
let startDateFilter = startDateString ? startDateString : "";
let endDateFilter = endDateString ? endDateString : "";
let monthFilter = monthYearFilter ? monthYearFilter : "";
+ const search = title == undefined ? "" : title;
+ const filter =
+ categoryFilter?.length > 0
+ ? categoryFilter?.sort().join(",")
+ : categorie || "";
const response = await listDataRegional(
"4",
- "",
- "",
+ search,
+ filter,
"",
"",
startDateFilter,
@@ -95,7 +100,8 @@ export default function FilterAudioComponent(props: {
const contentData = data?.content;
setNewContent(contentData);
setTotalData(data?.totalElements);
- // setLoading(false);
+ setTotalPage(data?.totalPages);
+ setTotalContent(data?.totalElements);
}
useEffect(() => {
diff --git a/components/landing-page/filter-all/document-filter-card.tsx b/components/landing-page/filter-all/document-filter-card.tsx
index 550a125f..82b74550 100644
--- a/components/landing-page/filter-all/document-filter-card.tsx
+++ b/components/landing-page/filter-all/document-filter-card.tsx
@@ -79,10 +79,16 @@ export default function FilterDocumentComponent(props: {
let endDateFilter = endDateString ? endDateString : "";
let monthFilter = monthYearFilter ? monthYearFilter : "";
+ const search = title == undefined ? "" : title;
+ const filter =
+ categoryFilter?.length > 0
+ ? categoryFilter?.sort().join(",")
+ : categorie || "";
+
const response = await listDataRegional(
"3",
- "",
- "",
+ search,
+ filter,
"",
"",
startDateFilter,
@@ -96,7 +102,8 @@ export default function FilterDocumentComponent(props: {
const contentData = data?.content;
setNewContent(contentData);
setTotalData(data?.totalElements);
- // setLoading(false);
+ setTotalPage(data?.totalPages);
+ setTotalContent(data?.totalElements);
}
async function getDataAll() {
diff --git a/components/landing-page/filter-all/image-filter-card.tsx b/components/landing-page/filter-all/image-filter-card.tsx
index adb9f7a2..248b06d8 100644
--- a/components/landing-page/filter-all/image-filter-card.tsx
+++ b/components/landing-page/filter-all/image-filter-card.tsx
@@ -117,10 +117,16 @@ export default function FilterImageComponent(props: {
let endDateFilter = endDateString ? endDateString : "";
let monthFilter = monthYearFilter ? monthYearFilter : "";
+ const search = title == undefined ? "" : title;
+ const filter =
+ categoryFilter?.length > 0
+ ? categoryFilter?.sort().join(",")
+ : categorie || "";
+
const response = await listDataRegional(
"1",
- "",
- "",
+ search,
+ filter,
"",
"",
startDateFilter,
@@ -134,7 +140,8 @@ export default function FilterImageComponent(props: {
const contentData = data?.content;
setNewContent(contentData);
setTotalData(data?.totalElements);
- // setLoading(false);
+ setTotalPage(data?.totalPages);
+ setTotalContent(data?.totalElements);
}
const basePath = asPath.includes("/polda/")
@@ -205,17 +212,19 @@ export default function FilterImageComponent(props: {
// whileHover={{ scale: 0.95 }}
// transition={{ duration: 0.3 }}
>
-