mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 21:54:24 +00:00
Accept ids equal to 0 as StrapiID
This commit is contained in:
parent
c398b969a4
commit
248546581f
@ -30,7 +30,7 @@ class StrapiIDSchema extends MixedSchemaType {
|
||||
}
|
||||
|
||||
_typeCheck(value) {
|
||||
return typeof value === 'string' || (Number.isInteger(value) && value > 0);
|
||||
return typeof value === 'string' || (Number.isInteger(value) && value >= 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user