mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 08:27:10 +02:00
🐛 Fix get name from file when importing
This commit is contained in:
parent
50774bebb3
commit
c8593b1c18
2 changed files with 12 additions and 4 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue