🐛 Fix get name from file when importing

This commit is contained in:
alonso.torres 2024-01-24 16:38:01 +01:00
parent 50774bebb3
commit c8593b1c18
2 changed files with 12 additions and 4 deletions

View file

@ -728,7 +728,10 @@
:method :get})
(rx/map :body)
(rx/mapcat (fn [file]
(->> (rp/cmd! ::sse/import-binfile {:file file :project-id project-id})
(->> (rp/cmd! ::sse/import-binfile
{:name (str/replace (:name data) #".penpot$" "")
:file file
:project-id project-id})
(rx/tap (fn [event]
(let [payload (sse/get-payload event)
type (sse/get-type event)]