Skip to content

Commit

Permalink
Tag to Topic change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanvi-IBM committed Jul 8, 2024
1 parent 2559709 commit 1577cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/projects/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function ProjectsPage() {
//this function calls renderProjects initially to reflect initial selection
React.useEffect(() => {
if (topic) {
filterProjectsByTag(topic);
filterProjectsByTopic(topic);
}
}, []);

Expand Down Expand Up @@ -87,8 +87,8 @@ function ProjectsPage() {
renderProjects();
};

// Define the filterProjectsByTag function
let filterProjectsByTag = (topic) => {
// Define the filterProjectsByTopic function
let filterProjectsByTopic = (topic) => {
repoData.forEach((node) => {
var nodeTopics = node.repositoryTopics.nodes.map((topic) => topic.topic.name);
var inRepo = nodeTopics.includes(topic);
Expand Down

0 comments on commit 1577cac

Please sign in to comment.