When a user selects a field to be a "Dropdown" type, then enters a groupId, but then later goes back and changes the type (ex. to "Keyboard"), the groupId will be maintained and an object with a non-empty groupId and a non-Dropdown type will be saved to the database. IMO this is an unexpected deviation from the model and should be remedied.
Additionally, an empty String-type groupId will be passed no matter what, which is an unexpected deviation.
When a user selects a field to be a "Dropdown" type, then enters a groupId, but then later goes back and changes the type (ex. to "Keyboard"), the groupId will be maintained and an object with a non-empty groupId and a non-Dropdown type will be saved to the database. IMO this is an unexpected deviation from the model and should be remedied.
Additionally, an empty String-type groupId will be passed no matter what, which is an unexpected deviation.