mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
bug: Fix manipulate duplicated project
This commit is contained in:
parent
f05e37590a
commit
6b4bca50ee
2 changed files with 7 additions and 5 deletions
|
@ -36,6 +36,7 @@
|
||||||
- Fix problem in Firefox with scroll jumping when changin pages [#3052](https://github.com/penpot/penpot/issues/3052)
|
- Fix problem in Firefox with scroll jumping when changin pages [#3052](https://github.com/penpot/penpot/issues/3052)
|
||||||
- Fix nested frame interaction created flow in wrong frame [Taiga #5043](https://tree.taiga.io/project/penpot/issue/5043)
|
- Fix nested frame interaction created flow in wrong frame [Taiga #5043](https://tree.taiga.io/project/penpot/issue/5043)
|
||||||
- Font-Kerning does not work on Artboard Export to PNG/JPG/PDF [#3029](https://github.com/penpot/penpot/issues/3029)
|
- Font-Kerning does not work on Artboard Export to PNG/JPG/PDF [#3029](https://github.com/penpot/penpot/issues/3029)
|
||||||
|
- Fix manipulate duplicated project (delete, duplicate, rename, pin/unpin...) [Taiga #5027](https://tree.taiga.io/project/penpot/issue/5027)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -231,12 +231,13 @@
|
||||||
;; Defer all constraints
|
;; Defer all constraints
|
||||||
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
|
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
|
||||||
|
|
||||||
(let [project (db/get-by-id conn :project project-id)
|
(let [project (-> (db/get-by-id conn :project project-id)
|
||||||
|
(assoc :is-pinned false))
|
||||||
|
|
||||||
files (db/query conn :file
|
files (db/query conn :file
|
||||||
{:project-id (:id project)
|
{:project-id (:id project)
|
||||||
:deleted-at nil}
|
:deleted-at nil}
|
||||||
{:columns [:id]})
|
{:columns [:id]})
|
||||||
|
|
||||||
project (cond-> project
|
project (cond-> project
|
||||||
(string? name)
|
(string? name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue