mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 14:07:18 +02:00
✨ Normalize default page data structure.
This commit is contained in:
parent
422536d4a1
commit
e61cdc500c
3 changed files with 10 additions and 10 deletions
|
@ -350,15 +350,6 @@
|
|||
|
||||
(declare page-created)
|
||||
|
||||
(def default-page-data
|
||||
{:version 1
|
||||
:shapes []
|
||||
:canvas []
|
||||
:options {:grid-x 10
|
||||
:grid-y 10
|
||||
:grid-color "#cccccc"}
|
||||
:shapes-by-id {}})
|
||||
|
||||
(def create-empty-page
|
||||
(ptk/reify ::create-empty-page
|
||||
ptk/WatchEvent
|
||||
|
@ -369,7 +360,7 @@
|
|||
params {:name name
|
||||
:file-id file-id
|
||||
:ordering ordering
|
||||
:data default-page-data}]
|
||||
:data cp/default-page-data}]
|
||||
(->> (rp/mutation :create-project-page params)
|
||||
(rx/map page-created))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue