mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🐛 Fix layout initialization
This commit is contained in:
parent
d847c607e3
commit
75202fdcba
1 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,7 @@
|
|||
[clojure.set :as set]
|
||||
[clojure.set :as set]
|
||||
[cuerdas.core :as str]
|
||||
[cljs.pprint :refer [pprint]]
|
||||
;; [cljs.pprint :refer [pprint]]
|
||||
[potok.core :as ptk]))
|
||||
|
||||
;; (log/set-level! :trace)
|
||||
|
@ -125,7 +125,9 @@
|
|||
(ptk/reify ::initialize-layout
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(assoc state :workspace-layout default-layout))
|
||||
(update state :worskpace-layout
|
||||
(fn [layout]
|
||||
(merge default-layout layout))))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ state stream]
|
||||
|
|
Loading…
Add table
Reference in a new issue