0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

🐛 Fix project file count

This commit is contained in:
Aitor 2023-04-13 23:11:41 +02:00 committed by Alejandro Alonso
parent dde7063da0
commit 657ce4fa0a
2 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,7 @@
- Fix problem with rulers not placing correctly [Taiga #5093](https://tree.taiga.io/project/penpot/issue/5093)
- Fix page context menu [Taiga #5145](https://tree.taiga.io/project/penpot/issue/5145)
- Fix project file count [Taiga #5148](https://tree.taiga.io/project/penpot/issue/5148)
### :arrow_up: Deps updates

View file

@ -851,7 +851,7 @@
(declare file-created)
(defn file-created
[{:keys [id] :as file}]
[{:keys [id project-id] :as file}]
(us/verify ::file file)
(ptk/reify ::file-created
IDeref
@ -862,7 +862,8 @@
(update [_ state]
(-> state
(assoc-in [:dashboard-files id] file)
(assoc-in [:dashboard-recent-files id] file)))))
(assoc-in [:dashboard-recent-files id] file)
(update-in [:dashboard-projects project-id :count] inc)))))
(defn create-file
[{:keys [project-id] :as params}]