CLASSROOMIO-T-112:Redesigned the UI of the Exercise page
CLASSROOMIO-T-112:Fixed the page reload for student and tutors Merge branch 'CLASSROOMIO-T-112' of https://gitlab.com/thenextgreat/classroomio into CLASSROOMIO-T-112 CLASSROOMIO-T-112:Fixed the Modal button Merge branch 'CLASSROOMIO-T-112' of https://gitlab.com/thenextgreat/classroomio into CLASSROOMIO-T-112 CLASSROOMIO-T-112: UX improvement CLASSROOMIO-T-112:Removed the console log CLASSROOMIO-T-112:Updated the UI/UX of the exercise page Merge branch 'main' into CLASSROOMIO-T-112 CLASSROOMIO-T-112:Redesigned the UI of the Exercise page Merge branch 'CLASSROOMIO-T-112' of https://gitlab.com/thenextgreat/classroomio into CLASSROOMIO-T-112 CLASSROOMIO-T-112:Made the empty fit the page CLASSROOMIO-T-112: Handle cases of options in a question not saving. Co-authored-by: Ifeanyi Nwosu <[email protected]> Co-authored-by: Rotimi Best <[email protected]> Merge-request: CLASSROOMIO-MR-60 Merged-by: Best Admin <[email protected]>
This commit is contained in:
committed by
Space Cloud
co-authored by
Ifeanyi Nwosu
Rotimi Best
parent
ce63736b40
commit
9d0fd56f05
@@ -243,7 +243,7 @@ export async function upsertExercise(questionnaire: any, exerciseId: Exercise['i
|
||||
let questionSupabaseRes;
|
||||
|
||||
if (is_dirty || isNew(id)) {
|
||||
const res = await supabase.from('question').upsert(newQuestion);
|
||||
const res = await supabase.from('question').upsert(newQuestion).select();
|
||||
|
||||
if (res.error) {
|
||||
console.error(`Upsert question`, res.error);
|
||||
@@ -293,7 +293,7 @@ export async function upsertExercise(questionnaire: any, exerciseId: Exercise['i
|
||||
};
|
||||
|
||||
if (is_dirty || isNew(option.id)) {
|
||||
const { data } = await supabase.from('option').upsert(newOption);
|
||||
const { data } = await supabase.from('option').upsert(newOption).select();
|
||||
if (Array.isArray(data)) {
|
||||
// @ts-ignore
|
||||
newQuestion.options.push(data[0]);
|
||||
|
||||
Reference in New Issue
Block a user