Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: don't switch to space if on same space (#7939)

Richard Shiuef4ae25f8d3fb
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
index 927f163746..e658baa544 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/desktop_home_screen.dart
@@ -318,7 +318,9 @@ class DesktopHomeScreen extends StatelessWidget {
ancestors.items.firstWhereOrNull((ancestor) => ancestor.isSpace),
(error) => null,
);
- switchToSpaceNotifier.value = space;
+ if (space?.id != switchToSpaceNotifier.value?.id) {
+ switchToSpaceNotifier.value = space;
+ }
}
}