mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix wrong number of components in the library modal (#7332)
This commit is contained in:
parent
4fe6cfc57a
commit
e2151409bf
@ -9,6 +9,7 @@
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.files.variant :as cfv]
|
||||
[app.common.types.components-list :as ctkl]
|
||||
[app.common.types.file :as ctf]
|
||||
[app.common.types.library :as ctl]
|
||||
@ -59,7 +60,8 @@
|
||||
(let [colors (count (:colors data))
|
||||
graphics 0
|
||||
typographies (count (:typographies data))
|
||||
components (count (ctkl/components-seq data))
|
||||
components (count (->> (ctkl/components-seq data)
|
||||
(remove #(cfv/is-secondary-variant? % data))))
|
||||
empty? (and (zero? components)
|
||||
(zero? graphics)
|
||||
(zero? colors)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user