From b92a02173498900b35f53247b337488f5d7b9c9c Mon Sep 17 00:00:00 2001 From: Taras Greben Date: Fri, 26 Jun 2026 15:39:02 +0300 Subject: [PATCH] Fix KiCAD netlist export if more than one projects are managed --- docs/nets.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/nets.js b/docs/nets.js index 926257d..f6d392e 100644 --- a/docs/nets.js +++ b/docs/nets.js @@ -323,7 +323,8 @@ class NetManager { } } - const nets = await this.db.getNets(); + const allNets = await this.db.getNets(); + const nets = allNets.filter(n => n.projectId === currentBomId); const components = (typeof bomData !== 'undefined') ? bomData : []; // --- CONFIGURATION: Component Type Mapping --- @@ -408,7 +409,8 @@ class NetManager { } } - const nets = await this.db.getNets(); + const allNets = await this.db.getNets(); + const nets = allNets.filter(n => n.projectId === currentBomId); const components = (typeof bomData !== 'undefined') ? bomData :[]; let out = "* SPICE Netlist generated by PCB ReTrace\n";