mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
Merge pull request #5255 from penpot/niwinz-bugfix-1
🐛 Fix null pointer exception on validating nil with number schema
This commit is contained in:
commit
227f06c1ec
2
.gitignore
vendored
2
.gitignore
vendored
@ -74,3 +74,5 @@ node_modules
|
|||||||
/playwright-report/
|
/playwright-report/
|
||||||
/blob-report/
|
/blob-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
|
/render-wasm/target/
|
||||||
|
/**/.yarn/*
|
||||||
|
|||||||
@ -681,8 +681,8 @@
|
|||||||
(let [pred int?
|
(let [pred int?
|
||||||
pred (if (some? min)
|
pred (if (some? min)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
(and (>= v min)
|
(and (pred v)
|
||||||
(pred v)))
|
(>= v min)))
|
||||||
pred)
|
pred)
|
||||||
pred (if (some? max)
|
pred (if (some? max)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
@ -719,8 +719,8 @@
|
|||||||
(let [pred double?
|
(let [pred double?
|
||||||
pred (if (some? min)
|
pred (if (some? min)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
(and (>= v min)
|
(and (pred v)
|
||||||
(pred v)))
|
(>= v min)))
|
||||||
pred)
|
pred)
|
||||||
pred (if (some? max)
|
pred (if (some? max)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
@ -749,8 +749,8 @@
|
|||||||
(let [pred number?
|
(let [pred number?
|
||||||
pred (if (some? min)
|
pred (if (some? min)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
(and (>= v min)
|
(and (pred v)
|
||||||
(pred v)))
|
(>= v min)))
|
||||||
pred)
|
pred)
|
||||||
pred (if (some? max)
|
pred (if (some? max)
|
||||||
(fn [v]
|
(fn [v]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user