0
Fork 0
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:
Andrey Antukh 2020-01-14 13:27:30 +01:00
parent d578a7c96a
commit 43d60e238a
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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]