Skip to content

Commit 0115aba

Browse files
authored
Merge pull request #7 from Lab-Lab-Lab/main
Fixes #6 current issue in prod (hopefully)
2 parents a70c222 + 07b620f commit 0115aba

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# CPR-Music
2+
This is the frontend for MusicCPR.org
3+
14
# Deploying
25
1. tag the version `git tag <whatever, e.g. v0.2.2>`
36
1. push the tag `git push origin <whatever, e.g. v0.2.2>`

components/student/connect.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ export default function ConnectActivity() {
2828
const assignment =
2929
loadedActivities &&
3030
activities &&
31-
activities?.[slug] &&
32-
activities?.[slug].filter(
31+
activities?.[piece].filter(
3332
(assn) =>
34-
assn.piece_slug === piece &&
3533
assn.activity_type_category.startsWith(actCategory)
3634
)?.[0];
3735
const assignmentId = assignment?.id;

components/teacher/grade/perform.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default function GradePerform({ submissions }) {
3939
{submissions &&
4040
submissions.map((submission, submissionIdx) => {
4141
let rte;
42+
let reflection;
4243
if (
4344
submission?.assignment?.activity?.activity_type?.category ===
4445
'Respond' &&
@@ -78,7 +79,7 @@ export default function GradePerform({ submissions }) {
7879
<Row>
7980
<Col>
8081
<p>
81-
{JSON.parse(submission?.content).reflection}
82+
{reflection}
8283
</p>
8384
</Col>
8485
<Col xs={1}>

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)