We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5cfc2 commit 44fc8e2Copy full SHA for 44fc8e2
src/pages/hackshack/f2fhelper/template.js
@@ -76,9 +76,13 @@ const Student = (props) => {
76
})
77
.then((response) => {
78
arr.push({ ...response.data });
79
+ const data = [...students, ...response.data];
80
+ console.log('response.data =>', response.data);
81
+ console.log('data =>', data);
82
+ setStudents(data);
83
+
84
if (arr.length <= 0)
85
setError('There are currently no active students. Stay tuned!');
- setStudents([...students, ...response.data]);
86
87
.catch((err) => {
88
if (err.response.status === 401) {
0 commit comments