Skip to content

Commit

Permalink
fix(svg): default value for @spice_get_currnet
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Mar 11, 2024
1 parent 2469631 commit e2f46a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export class SVGRenderer extends EventTarget {
parent: SVGElement,
properties: Record<string, string> = {},
) {
// Many xschem symbols use the spice_get_voltage property, so specify a default value
// Many xschem symbols use the spice_get_voltage/spice_get_current property, so specify a default value
properties.spice_get_voltage ??= '';
properties.spice_get_current ??= '';

switch (item.type) {
case 'Wire': {
Expand Down

0 comments on commit e2f46a8

Please sign in to comment.