浏览代码

fix: default name when create a new field

appflowy 2 年之前
父节点
当前提交
c5963bc765
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart

+ 1 - 1
frontend/app_flowy/lib/plugins/grid/application/field/field_editor_bloc.dart

@@ -35,7 +35,7 @@ class FieldEditorBloc extends Bloc<FieldEditorEvent, FieldEditorState> {
             emit(state.copyWith(name: name));
           },
           didReceiveFieldChanged: (FieldPB field) {
-            emit(state.copyWith(field: Some(field)));
+            emit(state.copyWith(field: Some(field), name: field.name));
           },
         );
       },