Skip to content

Commit

Permalink
Merge pull request #672 from hpi-studyu/fix/auto-save-new-study
Browse files Browse the repository at this point in the history
fix: auto-save new study
  • Loading branch information
ibrahimozkn authored Aug 9, 2024
2 parents 317ab49 + ac420ea commit 146c320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion designer_v2/lib/features/dashboard/dashboard_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class DashboardController extends _$DashboardController
}

void onClickNewStudy() {
router.dispatch(RoutingIntents.studyNew);
final Study newStudy = studyRepository.delegate.createNewInstance();
newStudy.save();
router.dispatch(RoutingIntents.studyEdit(newStudy.id));
}

Future<void> pinStudy(String modelId) async {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 146c320

Please sign in to comment.