mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 00:17:23 +02:00
✨ Add better validation for recent-color change
This commit is contained in:
parent
52fbc678f3
commit
7e302cd21c
3 changed files with 7 additions and 8 deletions
|
@ -113,7 +113,7 @@
|
|||
|
||||
(defn add-recent-color
|
||||
[color]
|
||||
(dm/assert! (ctc/recent-color? color))
|
||||
(dm/assert! (ctc/valid-recent-color? color))
|
||||
(ptk/reify ::add-recent-color
|
||||
ptk/WatchEvent
|
||||
(watch [it _ _]
|
||||
|
@ -143,7 +143,7 @@
|
|||
|
||||
(defn update-color
|
||||
[color file-id]
|
||||
(dm/assert! (ctc/color? color))
|
||||
(dm/assert! (ctc/valid-color? color))
|
||||
(dm/assert! (uuid? file-id))
|
||||
|
||||
(ptk/reify ::update-color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue