mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: integration test on kanban (#3928)
This commit is contained in:
parent
3708a5b86a
commit
47f3702ca9
@ -6,7 +6,6 @@ import 'package:appflowy/plugins/database_view/application/field/field_info.dart
|
||||
import 'package:appflowy/plugins/database_view/application/group/group_service.dart';
|
||||
import 'package:appflowy/plugins/database_view/application/row/row_service.dart';
|
||||
import 'package:appflowy_board/appflowy_board.dart';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:appflowy_backend/log.dart';
|
||||
import 'package:appflowy_backend/protobuf/flowy-error/errors.pb.dart';
|
||||
@ -257,11 +256,11 @@ class BoardBloc extends Bloc<BoardEvent, BoardState> {
|
||||
databaseController.databaseLayoutSetting?.board.hideUngroupedColumn ??
|
||||
false;
|
||||
|
||||
FieldType? get groupingFieldType {
|
||||
final fieldInfo = databaseController.fieldController.fieldInfos
|
||||
.firstWhereOrNull((field) => field.isGroupField);
|
||||
FieldType get groupingFieldType {
|
||||
final fieldInfo =
|
||||
databaseController.fieldController.getField(groupList.first.fieldId)!;
|
||||
|
||||
return fieldInfo?.fieldType;
|
||||
return fieldInfo.fieldType;
|
||||
}
|
||||
|
||||
void initializeGroups(List<GroupPB> groups) {
|
||||
|
@ -150,7 +150,7 @@ class _BoardContentState extends State<BoardContent> {
|
||||
child: BlocBuilder<BoardBloc, BoardState>(
|
||||
builder: (context, state) {
|
||||
final showCreateGroupButton =
|
||||
context.read<BoardBloc>().groupingFieldType!.canCreateNewGroup;
|
||||
context.read<BoardBloc>().groupingFieldType.canCreateNewGroup;
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
child: AppFlowyBoard(
|
||||
|
Loading…
Reference in New Issue
Block a user