Skip to content

Commit

Permalink
v4.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Apr 17, 2024
1 parent 1cecd04 commit fa939f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/netdata-ui",
"version": "4.4.2",
"version": "4.4.3",
"description": "netdata UI kit",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
8 changes: 7 additions & 1 deletion src/hooks/useDropElement/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ export default () => {
}, [])

useLayoutEffect(() => {
return () => document.body.removeChild(el)
return () => {
try {
document.body.removeChild(el)
} catch (e) {
// Do nothing
}
}
}, [])

return el
Expand Down

0 comments on commit fa939f0

Please sign in to comment.