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 show ungrouped column when the field type is checkbox (#4538)

Richard Shiue5c5b6d02e8d6
diff --git a/frontend/appflowy_flutter/lib/plugins/database/board/application/board_bloc.dart b/frontend/appflowy_flutter/lib/plugins/database/board/application/board_bloc.dart
index 8a91d7b34a..e0619f2171 100644
--- a/frontend/appflowy_flutter/lib/plugins/database/board/application/board_bloc.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database/board/application/board_bloc.dart
@@ -303,12 +303,14 @@ class BoardBloc extends Bloc<BoardEvent, BoardState> {
boardController.addGroups(
groups
- .where(
- (group) =>
- fieldController.getField(group.fieldId) != null &&
- ((!group.isDefault && group.isVisible) ||
- (group.isDefault && !hideUngrouped)),
- )
+ .where((group) {
+ final field = fieldController.getField(group.fieldId);
+ return field != null &&
+ (!group.isDefault && group.isVisible ||
+ group.isDefault &&
+ !hideUngrouped &&
+ field.fieldType != FieldType.Checkbox);
+ })
.map((group) => _initializeGroupData(group))
.toList(),
);