mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: don't show ungrouped column when the field type is checkbox (#4538)
This commit is contained in:
parent
8937856d36
commit
5c5b6d02e8
@ -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(),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user