mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 00:11:38 +02:00
🐛 Fix problem with comment refreshing
This commit is contained in:
parent
61df70b314
commit
a4776cf27f
1 changed files with 5 additions and 3 deletions
|
@ -249,14 +249,16 @@
|
||||||
|
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(d/update-in-when state [:comments thread-id id] assoc :content content))
|
(-> state
|
||||||
|
(d/update-in-when [:comments thread-id id] assoc :content content)))
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [share-id (-> state :viewer-local :share-id)]
|
(let [file-id (:current-file-id state)
|
||||||
|
share-id (-> state :viewer-local :share-id)]
|
||||||
(->> (rp/cmd! :update-comment {:id id :content content :share-id share-id})
|
(->> (rp/cmd! :update-comment {:id id :content content :share-id share-id})
|
||||||
(rx/catch #(rx/throw {:type :comment-error}))
|
(rx/catch #(rx/throw {:type :comment-error}))
|
||||||
(rx/ignore))))))
|
(rx/map #(retrieve-comment-threads file-id)))))))
|
||||||
|
|
||||||
(defn delete-comment-thread-on-workspace
|
(defn delete-comment-thread-on-workspace
|
||||||
[{:keys [id] :as thread}]
|
[{:keys [id] :as thread}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue