mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
🐛 Fix project and file creation on empty user.
This commit is contained in:
parent
d578a7c96a
commit
43d60e238a
2 changed files with 4 additions and 2 deletions
|
@ -92,8 +92,10 @@
|
|||
(let [id (uuid/next)
|
||||
name "Page 1"
|
||||
data (blob/encode
|
||||
{:shapes []
|
||||
{:version 1
|
||||
:shapes []
|
||||
:canvas []
|
||||
:options {}
|
||||
:shapes-by-id {}})
|
||||
sql "insert into project_pages (id, user_id, file_id, name, version,
|
||||
ordering, data)
|
||||
|
|
|
@ -197,7 +197,7 @@
|
|||
|
||||
[:div.projects-row
|
||||
[:span "PROJECTS"]
|
||||
[:a.add-project #_{:on-click #(st/emit! di/create-collection)}
|
||||
[:a.add-project {:on-click #(st/emit! udp/create-project)}
|
||||
i/close]]
|
||||
|
||||
(for [item projects]
|
||||
|
|
Loading…
Add table
Reference in a new issue