From 03668f6819ee23d6376e8bbb4255aeb0dc3bf226 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 6 Aug 2026 08:18:52 +0000 Subject: [PATCH] :bug: Fix num-linked-libraries to use select-libraries instead of all files refs/select-libraries filters to only files that are libraries of the current file (including itself), so (dec (count libraries)) now correctly returns the number of linked external libraries. Closes #11106 AI-assisted-by: mimo-v2.5-pro --- frontend/src/app/main/data/workspace.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index dac5a5564e..715740c5da 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -276,7 +276,7 @@ (compute-stats [state] (let [file (dsh/lookup-file state file-id) file-data (:data file) - libraries (dsh/lookup-libraries state) + libraries (refs/select-libraries (:files state) file-id) shapes (count-shapes-per-page file-data) n-pages (count (:pages file-data)) n-shapes (reduce + 0 shapes)