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";