Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jun 11, 2024
1 parent 547c468 commit 4beb796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/lib/src/models/tables/study.dart
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ class Study extends SupabaseObjectFunctions<Study> implements Comparable<Study>
static Future<ExtractionResult<Study>> publishedPublicStudies() async {
ExtractionResult<Study> result;
try {
final response = await env.client.from(tableName).select().eq('participation', 'open').neq('status', StudyStatus.closed.name);
final response =
await env.client.from(tableName).select().eq('participation', 'open').neq('status', StudyStatus.closed.name);
final extracted = SupabaseQuery.extractSupabaseList<Study>(List<Map<String, dynamic>>.from(response));
result = ExtractionSuccess<Study>(extracted);
} on ExtractionFailedException<Study> catch (error) {
Expand Down
3 changes: 2 additions & 1 deletion designer_v2/lib/features/study/study_controller_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class StudyControllerState extends StudyControllerBaseState implements IStudyApp
bool get isPublishVisible => studyWithMetadata?.model.status == StudyStatus.draft;

@override
bool get isClosedVisible => studyWithMetadata?.model.status == StudyStatus.running && studyWithMetadata!.model.canEdit(super.currentUser);
bool get isClosedVisible =>
studyWithMetadata?.model.status == StudyStatus.running && studyWithMetadata!.model.canEdit(super.currentUser);

@override
StudyStatus? get studyStatus => study.value?.status;
Expand Down

0 comments on commit 4beb796

Please sign in to comment.