Skip to content

Commit

Permalink
Merge branch 'main' into new-main
Browse files Browse the repository at this point in the history
  • Loading branch information
paritshivani authored Sep 20, 2024
2 parents 662524b + 7c1a6ba commit 5765cb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/nulp_elite/src/pages/content/CategoryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ const CategoryPage = () => {
const handleDomainFilter = (query, domainName) => {
setSelectedDomain(query);
setDomainName(domainName);
fetchMoreItems(domainName);
// fetchMoreItems(domainName);
};

useEffect(() => {
if (selectedDomain) {
fetchMoreItems(selectedDomain);
}
}, [selectedDomain]);

fetchMoreItems();

}, [selectedDomain,domainName,clearDomains]);

useEffect(() => {
fetchMoreItems(selectedDomain);
}, [currentPage,clearDomains]);
}, [currentPage]);

const handleGoBack = () => {
navigate(-1); // Navigate back in history
Expand Down Expand Up @@ -223,8 +223,9 @@ const CategoryPage = () => {
};

const clearDomain = () => {
setDomainName(null)
setDomainName(null);
setClearDomain(null);
setSelectedDomain(null)
}

useEffect(() => {
Expand Down
2 changes: 2 additions & 0 deletions packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ const JoinCourse = () => {
<>
<Box>
<Button

disabled={ isCompleted}

onClick={() =>
handleLinkClick(
ContinueLearning ?? NotConsumedContent ?? childnode
Expand Down

0 comments on commit 5765cb8

Please sign in to comment.