src: Fix user groups validation on import

The error for invalid user groups was not previously rendered on import. This fixes the issue and adds an import test to check that the error messages for all user fields get correctly rendered.
This commit is contained in:
regexowl 2025-05-12 09:52:45 +02:00 committed by Klara Simickova
parent 186e29fb19
commit 27da67360c
3 changed files with 46 additions and 10 deletions

View file

@ -126,6 +126,7 @@ const UserInfo = () => {
errors: {
userName: stepValidation?.errors[index]?.userName,
userSshKey: stepValidation?.errors[index]?.userSshKey,
groups: stepValidation?.errors[index]?.groups,
},
disabledNext: stepValidation.disabledNext,
};