Skip to content

Commit fe477d9

Browse files
committed
fix: small bug fixing (0.0.29)
1 parent 849de8b commit fe477d9

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-circle-flags",
3-
"version": "0.0.28",
3+
"version": "0.0.29",
44
"description": "A React component with a collection of 300+ minimal circular SVG country flags",
55
"author": "Tomás Novau(tnovau@ontheedge.cloud)",
66
"license": "MIT",

src/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class SvgInline extends React.Component {
6767
svgElement.setAttribute(prop, this.props[prop])
6868
}
6969

70-
this.ref.current.outerHTML = svgElement.outerHTML
70+
if (this.ref.current) {
71+
this.ref.current.outerHTML = svgElement.outerHTML
72+
}
7173
}
7274
})
7375
}

0 commit comments

Comments
 (0)