Skip to content

Commit

Permalink
editor: first primary path key cannot be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Oct 29, 2024
1 parent c469d5f commit 71358a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/src/installer/view/editor/template/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ pub fn custom_template<'a>(
} else {
None
},
false,
i == 0,
)
} else {
undefined_key(
color::GREEN,
"Primary key",
!primary_path.keys[0..i].iter().any(|k| k.is_none()),
false,
i == 0,
)
}
.map(move |msg| message::DefinePath::Key(i, msg))
Expand Down

0 comments on commit 71358a6

Please sign in to comment.