Fix KiCAD netlist export if more than one projects are managed

This commit is contained in:
Taras Greben 2026-06-26 15:39:02 +03:00
commit b92a021734

View file

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