Skip to content

Commit f9edc04

Browse files
committed
update limit correctly
1 parent 268d938 commit f9edc04

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/lib/schemaValidation.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,7 @@ export const validateConfigForScheduled = (config: any) => {
775775

776776
errors = errors.filter(error => {
777777
const message = error.message || '';
778-
return !message.includes('max unique viewports allowed - 5') &&
779-
!message.includes('max mobile devices allowed - 20');
778+
return !message.includes('max unique viewports allowed - 5')
780779
});
781780

782781
if (config.web && config.web.viewports && Array.isArray(config.web.viewports)) {
@@ -789,18 +788,7 @@ export const validateConfigForScheduled = (config: any) => {
789788
} as any);
790789
}
791790
}
792-
793-
if (config.mobile && config.mobile.devices && Array.isArray(config.mobile.devices)) {
794-
if (config.mobile.devices.length > 205) {
795-
errors.push({
796-
message: "Invalid config; max unique devices allowed - 205 (scheduled build)",
797-
keyword: "maxItems",
798-
instancePath: "/mobile/devices",
799-
schemaPath: "#/properties/mobile/properties/devices/maxItems"
800-
} as any);
801-
}
802-
}
803-
791+
804792
// If there are any errors remaining, set them and return false
805793
if (errors.length > 0) {
806794
validateConfigForScheduled.errors = errors;

0 commit comments

Comments
 (0)