mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 17:38:02 +02:00
♻️ Always set component-file-id, even in local file
This commit is contained in:
parent
53b5d78cdc
commit
baec7838b4
24 changed files with 284 additions and 258 deletions
|
@ -112,7 +112,7 @@
|
|||
(create-file [conn owner-id project-id index]
|
||||
(let [id (mk-uuid "file" project-id index)
|
||||
name (str "file" index)
|
||||
data (cp/make-file-data)]
|
||||
data (cp/make-file-data id)]
|
||||
(log/info "create file" id)
|
||||
(db/insert! conn :file
|
||||
{:id id
|
||||
|
@ -186,7 +186,7 @@
|
|||
id (mk-uuid "file" "draft" owner-id index)
|
||||
name (str "file" index)
|
||||
project-id (:default-project-id owner)
|
||||
data (cp/make-file-data)]
|
||||
data (cp/make-file-data id)]
|
||||
|
||||
(log/info "create draft file" id)
|
||||
(db/insert! conn :file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue