mirror of
https://github.com/penpot/penpot.git
synced 2025-02-18 21:06:11 -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]
|
||||||
[clojure.set :as set]
|
[clojure.set :as set]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[cljs.pprint :refer [pprint]]
|
;; [cljs.pprint :refer [pprint]]
|
||||||
[potok.core :as ptk]))
|
[potok.core :as ptk]))
|
||||||
|
|
||||||
;; (log/set-level! :trace)
|
;; (log/set-level! :trace)
|
||||||
|
@ -125,7 +125,9 @@
|
||||||
(ptk/reify ::initialize-layout
|
(ptk/reify ::initialize-layout
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(assoc state :workspace-layout default-layout))
|
(update state :worskpace-layout
|
||||||
|
(fn [layout]
|
||||||
|
(merge default-layout layout))))
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state stream]
|
(watch [_ state stream]
|
||||||
|
|
Loading…
Add table
Reference in a new issue