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

🐛 Temporary fix for import on sets with groups (/ delimiter)

This commit is contained in:
Florian Schroedl 2024-10-24 10:13:03 +02:00
parent 66dce0e795
commit f5596b2b3f

View file

@ -137,7 +137,8 @@
(->> data-stream (->> data-stream
(rx/map (fn [data] (rx/map (fn [data]
(try (try
(t/decode-str data) (-> (str/replace data "/" "-") ;; TODO Remove when token groups work
(t/decode-str))
(catch js/Error e (catch js/Error e
(throw (wte/error-ex-info :error.import/json-parse-error data e)))))) (throw (wte/error-ex-info :error.import/json-parse-error data e))))))
(rx/map (fn [json-data] (rx/map (fn [json-data]