You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<metaproperty="og:site_name"content="GitHub Community SRM - The Official student-led community affiliated with GitHub, spearheading the open-source revolution at SRMIST."/>
Copy file name to clipboardExpand all lines: pages/contact.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ const Contact = () => {
22
22
<metaname="keywords"content="Contact, GitHub Community SRM, support, queries, FAQ, community help, reach out, open source support, SRMIST GitHub, GitHub Community support"/>
23
23
<link
24
24
rel="canonical"
25
-
href="https://githubsrmist.tech/contact"
25
+
href="https://githubsrmist.in/contact"
26
26
/>
27
27
<metaproperty="og:title"content="Contact Us | GitHub Community SRM | Support & Queries"/>
28
28
<metaproperty="og:description"content="Need help or have a query? Contact the GitHub Community SRM team for assistance. Explore our FAQ section for quick answers."/>
<metaname="twitter:description"content="Need help or have a query? Contact the GitHub Community SRM team for support and assistance. Check out our FAQ section for quick answers."/>
"description": "Contact GitHub Community SRM for support, queries, or assistance. We are here to help with open source and community-related questions.",
// Handle both response formats: direct array or {data: array}
41
+
constteamData=Array.isArray(data) ? data : (data.data||[]);
42
+
43
+
constconvenorData=teamData.find(
40
44
(item)=>item.position==="Convenor"
41
45
);
42
-
constpresidentData=data.data.find(
46
+
constpresidentData=teamData.find(
43
47
(item)=>item.position==="President"
44
48
);
45
-
constvpData=data.data.find(
49
+
constvpData=teamData.find(
46
50
(item)=>item.position==="vicePresident"
47
51
);
48
52
49
-
// const adminsData = data.data.filter(
53
+
console.log("Convenor:",convenorData);
54
+
console.log("President:",presidentData);
55
+
console.log("VP:",vpData);
56
+
57
+
// const adminsData = teamData.filter(
50
58
// (item) => item.position === "Admin"
51
59
// );
52
-
constdirectorsData=data.data.filter(
60
+
constdirectorsData=teamData.filter(
53
61
(item)=>item.position==="Director"
54
62
);
55
-
constleadsData=data.data.filter(
63
+
constleadsData=teamData.filter(
56
64
(item)=>item.position==="Lead"
57
65
);
58
-
constassociatesData=data.data.filter(
66
+
constassociatesData=teamData.filter(
59
67
(item)=>item.position==="Associate"
60
68
);
61
-
constmembersData=data.data.filter(
69
+
constmembersData=teamData.filter(
62
70
(item)=>item.position==="Member"
63
71
);
64
72
@@ -72,7 +80,8 @@ const Teams = () => {
72
80
setMembers(membersData);
73
81
setFetched(true);
74
82
}catch(error){
75
-
console.error(error);
83
+
console.error("Error fetching team data:",error);
84
+
setFetched(true);// Set to true even on error to stop loading state
76
85
}
77
86
};
78
87
@@ -139,7 +148,7 @@ const Teams = () => {
139
148
<metaproperty="og:title"content="Meet the Team | GitHub Community SRM | Technical, Corporate, Creative"/>
140
149
<metaproperty="og:description"content="Meet the team behind GitHub Community SRM, including the President, Vice President, Leads, Associates, and Members from the Technical, Corporate, and Creative domains."/>
0 commit comments