mirror of
https://github.com/penpot/penpot.git
synced 2025-03-10 14:51:37 -05:00
🐛 Fix incorrect pred composition on number schema types
Fixes the following: => (sm/validate (sm/schema [::sm/int {:max 10}]) nil) Cannot invoke "Object.getClass()" because "x" is null
This commit is contained in:
parent
f43fc282d3
commit
40c118df55
1 changed files with 6 additions and 6 deletions
|
@ -686,8 +686,8 @@
|
|||
pred)
|
||||
pred (if (some? max)
|
||||
(fn [v]
|
||||
(and (>= max v)
|
||||
(pred v)))
|
||||
(and (pred v)
|
||||
(>= max v)))
|
||||
pred)]
|
||||
|
||||
{:pred pred
|
||||
|
@ -724,8 +724,8 @@
|
|||
pred)
|
||||
pred (if (some? max)
|
||||
(fn [v]
|
||||
(and (>= max v)
|
||||
(pred v)))
|
||||
(and (pred v)
|
||||
(>= max v)))
|
||||
pred)]
|
||||
|
||||
{:pred pred
|
||||
|
@ -754,8 +754,8 @@
|
|||
pred)
|
||||
pred (if (some? max)
|
||||
(fn [v]
|
||||
(and (>= max v)
|
||||
(pred v)))
|
||||
(and (pred v)
|
||||
(>= max v)))
|
||||
pred)
|
||||
|
||||
gen (sg/one-of
|
||||
|
|
Loading…
Add table
Reference in a new issue