fix: batch lists

This commit is contained in:
Jannat Patel
2024-04-22 14:38:46 +05:30
parent f15fdcc42e
commit 4f7c3f14df
7 changed files with 34 additions and 6 deletions

View File

@@ -108,13 +108,16 @@ const getCoursesColumns = () => {
{
label: 'Title',
key: 'title',
width: 2,
},
{
label: 'Lessons',
key: 'lesson_count',
align: 'right',
},
{
label: 'Enrollments',
align: 'right',
key: 'enrollment_count',
},
]
@@ -131,7 +134,6 @@ const removeCourse = createResource({
})
const removeCourses = (selections) => {
console.log(selections)
selections.forEach(async (course) => {
removeCourse.submit({ course })
await setTimeout(1000)