mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
💄 Add minor cosmetic improvement to viewer events ns
This commit is contained in:
parent
bbcf9c00a5
commit
aad70d9df8
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue