Skip to content

Commit

Permalink
Cast drawing extent with Number() instead of parseInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraKri committed Dec 18, 2024
1 parent b99a31d commit 080d6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/components/diagram/Pandid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function Pandid() {
{xmlData && (
<PandidContext.Provider
value={{
height: parseInt(xmlData.PlantModel.Drawing.Extent.Max.Y),
height: Number(xmlData.PlantModel.Drawing.Extent.Max.Y),
svgMap,
setSvgMap,
}}
Expand Down

0 comments on commit 080d6b1

Please sign in to comment.