Skip to content

Commit f4ae25f

Browse files
authored
fix: don't switch to space if on same space (#7939)
1 parent 2e4e71f commit f4ae25f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ class DesktopHomeScreen extends StatelessWidget {
318318
ancestors.items.firstWhereOrNull((ancestor) => ancestor.isSpace),
319319
(error) => null,
320320
);
321-
switchToSpaceNotifier.value = space;
321+
if (space?.id != switchToSpaceNotifier.value?.id) {
322+
switchToSpaceNotifier.value = space;
323+
}
322324
}
323325
}
324326

0 commit comments

Comments
 (0)