Auto show course w/invite + Fix saving

This commit is contained in:
rotimi-best
2021-08-28 22:44:06 +03:00
parent 7c746422f3
commit ddf4955d80
15 changed files with 289 additions and 229 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ export function createLesson(lesson) {
export function updateLesson(lesson, lessonId) {
return supabase
.from('lesson')
.update(lesson, { returning: 'minimal' })
.update({ ...lesson, id: undefined }, { returning: 'minimal' })
.match({ id: lessonId });
}