Skip to content

Commit

Permalink
Fix wrong undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <[email protected]>
  • Loading branch information
flo-dup committed Feb 23, 2024
1 parent 9ef560d commit c0a78d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/single-line-diagram-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class SingleLineDiagramViewer {
?.getAttribute('transform')
?.split(',');
const xs = transform?.[0]?.match(/\d+/)?.[0];
const ys = transform?.[1]?.match(/\d+/)?.[0] || 0;
const ys = transform?.[1]?.match(/\d+/)?.[0] || '';
const y = parseInt(ys, 10);
if (xs !== undefined) {
const x = parseInt(xs, 10);
Expand Down

0 comments on commit c0a78d4

Please sign in to comment.