feat: filter out empty IDs when getting busy study group members and make the members select field live.

This commit is contained in:
Yoga Pangestu 2026-03-12 10:43:38 +07:00
parent 299bb34236
commit 4799490ecf
2 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,7 @@ public function studyGroupFormSchema(): array
->multiple()
->searchable()
->required()
->live()
->columnSpanFull(),
TextInput::make('name')

View File

@ -65,6 +65,6 @@ function ($q) use ($courseIds, $excludeGroupId) {
->pluck('leader_id')
->toArray();
return array_unique(array_merge($busyMemberIds, $busyLeaderIds));
return array_unique(array_filter(array_merge($busyMemberIds, $busyLeaderIds)));
}
}