feat: filter out empty IDs when getting busy study group members and make the members select field live.
This commit is contained in:
parent
299bb34236
commit
4799490ecf
@ -148,6 +148,7 @@ public function studyGroupFormSchema(): array
|
||||
->multiple()
|
||||
->searchable()
|
||||
->required()
|
||||
->live()
|
||||
->columnSpanFull(),
|
||||
|
||||
TextInput::make('name')
|
||||
|
||||
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user