From c5963bc765f01876e398b83cd8c6d3480d4572f4 Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 7 Sep 2022 20:32:30 +0800 Subject: [PATCH] fix: default name when create a new field --- .../lib/plugins/grid/application/field/field_editor_bloc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart b/frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart index aa40e98e92..d7b024d67d 100644 --- a/frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart +++ b/frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart @@ -35,7 +35,7 @@ class FieldEditorBloc extends Bloc { emit(state.copyWith(name: name)); }, didReceiveFieldChanged: (FieldPB field) { - emit(state.copyWith(field: Some(field))); + emit(state.copyWith(field: Some(field), name: field.name)); }, ); },