Skip to content

Commit 3a578b6

Browse files
committed
chore: add comment explaining group name rename logic
1 parent 67b444a commit 3a578b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ui/components/extra_fields.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ pub fn update(
579579
if removing_last {
580580
if let Some(g) = model.groups.get_mut(idx) {
581581
g.name = "Default".into();
582+
// Field group_ids remain unchanged since we're renaming, not removing
582583
for f in model.fields.iter_mut() {
583584
if f.group_id == Some(group.id) {
584585
f.group_id = Some(g.id);

0 commit comments

Comments
 (0)