mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: using freeze to refactor the FieldInfo class (#3152)
This commit is contained in:
@ -134,7 +134,9 @@ impl DatabaseEditor {
|
||||
let field = database.fields.get_field(field_id);
|
||||
if let Some(field) = field {
|
||||
let group_setting = default_group_setting(&field);
|
||||
database.insert_group_setting(view_id, group_setting);
|
||||
database.views.update_database_view(view_id, |view| {
|
||||
view.set_groups(vec![group_setting.into()]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user