mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 20:46:11 +02:00
🐛 Fix bringing complete file data when launching the export dialog
This commit is contained in:
parent
ecfc20f514
commit
1bb83b3019
6 changed files with 59 additions and 10 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
(ns app.main.ui.dashboard.file-menu
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.main.data.dashboard :as dd]
|
||||
[app.main.data.events :as ev]
|
||||
[app.main.data.messages :as dm]
|
||||
|
@ -166,8 +165,8 @@
|
|||
(->> (rx/from files)
|
||||
(rx/flat-map
|
||||
(fn [file]
|
||||
(->> (rp/query :file-libraries {:file-id (:id file)})
|
||||
(rx/map #(assoc file :has-libraries? (d/not-empty? %))))))
|
||||
(->> (rp/command :has-file-libraries {:file-id (:id file)})
|
||||
(rx/map #(assoc file :has-libraries? %)))))
|
||||
(rx/reduce conj [])
|
||||
(rx/subs
|
||||
(fn [files]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue