mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 23:47:18 +02:00
🎉 Allow nested components
This commit is contained in:
parent
736c9e7e8c
commit
483401f328
9 changed files with 573 additions and 369 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
(def index-by-id #(index-by :id %))
|
||||
|
||||
(defn remove-nil-vals
|
||||
(defn without-nils
|
||||
"Given a map, return a map removing key-value
|
||||
pairs when value is `nil`."
|
||||
[data]
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
(r/match->path match)
|
||||
(let [uri (.parse goog.Uri (r/match->path match))
|
||||
qdt (.createFromMap QueryData (-> qparams
|
||||
(d/remove-nil-vals)
|
||||
(d/without-nils)
|
||||
(clj->js)))]
|
||||
(.setQueryData ^js uri qdt)
|
||||
(.toString ^js uri))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue