0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-01 11:59:17 -05:00

Clean up debugging code

This commit is contained in:
Florian Schroedl 2024-08-01 15:37:53 +02:00
parent 0c757f05e3
commit 13163a4571
2 changed files with 2 additions and 17 deletions

View file

@ -247,7 +247,7 @@ Token names should only contain letters and digits separated by . characters.")}
final-description (assoc :description final-description) final-description (assoc :description final-description)
(:id token) (assoc :id (:id token)))] (:id token) (assoc :id (:id token)))]
(st/emit! (dt/update-create-token new-token)) (st/emit! (dt/update-create-token new-token))
(st/emit! (wtu/update-workspace-tokens-event)) (st/emit! (wtu/update-workspace-tokens))
(modal/hide!)))))))))] (modal/hide!)))))))))]
[:form [:form
{:on-submit on-submit} {:on-submit on-submit}

View file

@ -117,11 +117,7 @@
(actionize-shapes-update-info))) (actionize-shapes-update-info)))
(defn update-workspace-tokens [] (defn update-workspace-tokens []
(let [resolved-tokens (wtsd/get-cached-tokens @refs/workspace-tokens)] (ptk/reify ::update-workspace-tokens
(update-tokens resolved-tokens)))
(defn update-workspace-tokens-event []
(ptk/reify ::update-shape-position
ptk/WatchEvent ptk/WatchEvent
(watch [_ state _] (watch [_ state _]
(->> (->>
@ -135,14 +131,3 @@
(->> (update-tokens sd-tokens) (->> (update-tokens sd-tokens)
(rx/concat))) (rx/concat)))
(rx/of (dwu/commit-undo-transaction undo-id)))))))))) (rx/of (dwu/commit-undo-transaction undo-id))))))))))
(comment
(->> (update-workspace-tokens)
(map rest)
(into []))
(update-workspace-tokens)
(st/emit! (update-workspace-tokens-event))
nil)