mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
Merge pull request #3140 from penpot/azazeln28-fix-project-file-count
🐛 Fix project file count
This commit is contained in:
commit
3a57b436a4
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
Reference in a new issue