0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

💄 Add minor cosmetic improvement to viewer events ns

This commit is contained in:
Andrey Antukh 2023-07-05 16:49:43 +02:00
parent bbcf9c00a5
commit aad70d9df8

View file

@ -98,9 +98,13 @@
[:file-id ::sm/uuid]
[:share-id {:optional true} ::sm/uuid]])
(def ^:private valid-fetch-bundle-params?
(sm/pred-fn schema:fetch-bundle))
(defn- fetch-bundle
[{:keys [file-id share-id] :as params}]
(dm/assert! (sm/valid? schema:fetch-bundle params))
(dm/assert! (valid-fetch-bundle-params? params))
(ptk/reify ::fetch-bundle
ptk/WatchEvent
(watch [_ state _]