diff --git a/designer_v2/lib/features/dashboard/dashboard_controller.dart b/designer_v2/lib/features/dashboard/dashboard_controller.dart index 426c8800f..a3084d3ae 100644 --- a/designer_v2/lib/features/dashboard/dashboard_controller.dart +++ b/designer_v2/lib/features/dashboard/dashboard_controller.dart @@ -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 pinStudy(String modelId) async { diff --git a/designer_v2/lib/features/dashboard/dashboard_controller.g.dart b/designer_v2/lib/features/dashboard/dashboard_controller.g.dart index 96ca59be1..d8ee791e5 100644 --- a/designer_v2/lib/features/dashboard/dashboard_controller.g.dart +++ b/designer_v2/lib/features/dashboard/dashboard_controller.g.dart @@ -7,7 +7,7 @@ part of 'dashboard_controller.dart'; // ************************************************************************** String _$dashboardControllerHash() => - r'2310b394163e63741253dd431a9131917a4a0853'; + r'9fcff21f19bee7e50f7206ac8328a01ce921f775'; /// See also [DashboardController]. @ProviderFor(DashboardController)