Skip to content

Commit

Permalink
fix: disable space migration for local user
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jun 13, 2024
1 parent f5bc53b commit 6ffa65e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ class _SidebarState extends State<_Sidebar> {
}

Widget _renderUpgradeSpaceButton(EdgeInsets menuHorizontalInset) {
return !context.watch<SpaceBloc>().state.shouldShowUpgradeDialog
return !context.watch<SpaceBloc>().state.shouldShowUpgradeDialog ||
!context.read<UserWorkspaceBloc>().state.isCollabWorkspaceOn
? const SizedBox.shrink()
: Container(
height: 40,
Expand Down

0 comments on commit 6ffa65e

Please sign in to comment.