mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 13:18:29 +00:00
🐛 Fix project and file creation on empty user.
This commit is contained in:
parent
d578a7c96a
commit
43d60e238a
@ -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…
x
Reference in New Issue
Block a user