mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
💄 Add minor cosmetic improvement to viewer events ns
This commit is contained in:
parent
bbcf9c00a5
commit
aad70d9df8
@ -98,9 +98,13 @@
|
|||||||
[:file-id ::sm/uuid]
|
[:file-id ::sm/uuid]
|
||||||
[:share-id {:optional true} ::sm/uuid]])
|
[:share-id {:optional true} ::sm/uuid]])
|
||||||
|
|
||||||
|
(def ^:private valid-fetch-bundle-params?
|
||||||
|
(sm/pred-fn schema:fetch-bundle))
|
||||||
|
|
||||||
(defn- fetch-bundle
|
(defn- fetch-bundle
|
||||||
[{:keys [file-id share-id] :as params}]
|
[{: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/reify ::fetch-bundle
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user