mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 22:41:38 +02:00
🐛 Fix project file count
This commit is contained in:
parent
dde7063da0
commit
657ce4fa0a
2 changed files with 4 additions and 2 deletions
|
@ -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}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue