debian-image-builder-frontend/src/Components/CreateImageWizard/validators/index.js
Gianluca Zuccarelli 78123bff0e CreateImageWizard: target env validation
Validation is not enforced on the image output step
when selecting and then deselecting an image type. This
is because the only validation which is set is `Required`.
However, after deselecting an image type the input becomes
a key-value object with all the values set to false. This
commit adds a custom validator to check that at least one
value in the object is set to true. Fixes #575
2022-04-04 15:11:45 +02:00

2 lines
184 B
JavaScript

export { default as fileSystemConfigurationValidator } from './fileSystemConfigurationValidator';
export { default as targetEnvironmentValidator } from './targetEnvironmentValidator';