Skip to content

Commit

Permalink
chore: revert last opened view code
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jul 8, 2024
1 parent 50c49ec commit d8668f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {
emit(state.copyWith(isLoading: e.isLoading));
},
didReceiveWorkspaceSetting: (_DidReceiveWorkspaceSetting value) {
final latestView = value.setting.hasLatestView()
? value.setting.latestView
: state.latestView;

emit(
state.copyWith(
workspaceSetting: value.setting,
latestView: latestView,
),
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class HomeSideBar extends StatelessWidget {
userProfile,
state.currentWorkspace?.workspaceId ??
workspaceSetting.workspaceId,
openFirstPage: true,
openFirstPage: false,
),
),
),
Expand Down

0 comments on commit d8668f9

Please sign in to comment.