Skip to content

Commit

Permalink
Merge pull request #595 from mahajanmahesh935/HomePage
Browse files Browse the repository at this point in the history
TASK : #0000 Data Fluctuation issue on contentList page
  • Loading branch information
ManojNathIC authored Sep 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 724a763 + bbe1bbe commit 8482abb
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
@@ -1419,7 +1419,7 @@ className="xs-hide accordionBoxShadow"
<Typography
className="h6-title"
onClick={handlecopyrightOpen}
style={{ cursor: "pointer", color: "blue" }}
style={{ cursor: "pointer", color: "blue !important" }}
>
{t("CREDITS")}
</Typography>
7 changes: 6 additions & 1 deletion packages/nulp_elite/src/pages/search/ContentList.js
Original file line number Diff line number Diff line change
@@ -104,23 +104,27 @@ const ContentList = (props) => {
if (location.state?.domain) {
setIsDomain(true);
}
setCurrentPage(1)
fetchData();
fetchUserData();
const random = getRandomValue();
}, [filters, search, currentPage, domainfilter]);

useEffect(() => {
setCurrentPage(1)
fetchData();
}, [domain]);

useEffect(() => {
setCurrentPage(1)
fetchData();
}, [contentTypeFilter]);
useEffect(() => {
fetchData();
}, [subDomainFilter]);

useEffect(() => {
setCurrentPage(1)
fetchData();
setHeaderSearch(globalSearchQuery);
if (headerSearch) {
@@ -129,6 +133,7 @@ const ContentList = (props) => {
}, [globalSearchQuery]);

useEffect(() => {
setCurrentPage(1)
if (headerSearch) {
setSearchQuery(headerSearch || "");
}
@@ -399,7 +404,7 @@ const ContentList = (props) => {
const handlefilterChanges = (selectedFilters) => {
setContentTypeFilter(selectedFilters.contentFilter || []);
setSubDomainFilter(selectedFilters.subDomainFilter || []);
fetchData();
// fetchData();
};

return (

0 comments on commit 8482abb

Please sign in to comment.