🐛 Fix wrong number of components in the library modal (#7332)

This commit is contained in:
Luis de Dios 2025-09-17 09:25:23 +02:00 committed by GitHub
parent 4fe6cfc57a
commit e2151409bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)