Explorar o código

fix: default name when create a new field

appflowy %!s(int64=2) %!d(string=hai) anos
pai
achega
c5963bc765

+ 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));
           },
         );
       },