Pārlūkot izejas kodu

fix: default name when create a new field

appflowy 2 gadi atpakaļ
vecāks
revīzija
e93bf3ddc2

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