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
constncag=ncags.find(ncag=>((ncag.question==problem.problemName)&&(ncag.createdAt===problem.createdAt)))// currently checking against createdAt since if two non-code questions have the same name they can be confused otherwise, can be removed once meta string added to assignemntproblem
28
-
if(!ncag||!ncag.metadata){
29
-
returnundefined
30
-
}
31
-
returnJSON.parse(ncag.metadata)
32
-
}
19
+
setMeta(problem.metadata)
33
20
}
34
21
35
-
36
22
useEffect(()=>{
37
-
fetchNcags()
38
-
},[])
39
-
40
-
constmeta=getMeta()
41
-
if(!meta||!meta.type){
23
+
getMeta()
24
+
},[problem])
25
+
26
+
if(!meta){
42
27
return(
43
28
<divclassName={styles.problem}>
44
29
<div>File Input Problems are not done yet pending backend changes! :D</div>
<labelhtmlFor='ai-check'className={styles.affirmText}>I affirm that I have complied with this course’s academic integrity policy as defined in the syllabus.</label>
0 commit comments