Skip to content

Commit

Permalink
Fix cancelled registrations in event admin (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeD1rk authored Dec 3, 2021
1 parent facad59 commit 6a3adf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class ApiRepository {
if (offset != null) 'offset': offset.toString(),
if (ordering != null) 'ordering': ordering,
if (search != null) 'search': search,
if (cancelled != null) 'cancelled': cancelled,
if (cancelled != null) 'cancelled': cancelled.toString(),
},
);
final response = await _handleExceptions(() => client.get(uri));
Expand Down
2 changes: 2 additions & 0 deletions lib/blocs/event_admin_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class EventAdminCubit extends Cubit<EventAdminState> {
pk: eventPk,
search: query,
limit: 999999999,
cancelled: false,
);
if (registrations.results.isEmpty) {
if (query?.isEmpty ?? true) {
Expand Down Expand Up @@ -123,6 +124,7 @@ class EventAdminCubit extends Cubit<EventAdminState> {
pk: eventPk,
search: query,
limit: 999999999,
cancelled: false,
);
if (registrations.results.isEmpty) {
if (query?.isEmpty ?? true) {
Expand Down

0 comments on commit 6a3adf0

Please sign in to comment.