Merge pull request #6483 from penpot/niwinz-staging-bugfixes-error-report

🐛 Several bugfixes
This commit is contained in:
Alejandro Alonso 2025-05-20 13:54:54 +02:00 committed by GitHub
commit ff9c8f5929
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 47 additions and 44 deletions

View file

@ -41,7 +41,7 @@
[:map-of {:gen/max 10} ::sm/uuid :map]]
[:plugin-data {:optional true} ::ctpg/plugin-data]])
(def check-container!
(def check-container
(sm/check-fn ::container))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -74,13 +74,9 @@
(defn get-shape
[container shape-id]
(dm/assert!
"expected valid container"
(check-container! container))
(dm/assert!
"expected valid uuid for `shape-id`"
(uuid? shape-id))
(assert (check-container container))
(assert (uuid? shape-id)
"expected valid uuid for `shape-id`")
(-> container
(get :objects)