Skip to content

Commit

Permalink
Ensure domNode is present before render (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Sep 12, 2024
1 parent a43ab73 commit c007982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grommet-leaflet/src/layers/MarkerCluster/MarkerCluster.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const MarkerCluster = props => {
// Need to accomodate earlier versions of React. If <18, then
// need to use ReactDOM.render() instead of createRoot().render().
// Should drop support for <18 in the future.
render(popupContent, domNode);
if (domNode) render(popupContent, domNode);
// const root = createRoot(domNode);
// root.render(popupContent);
});
Expand Down

0 comments on commit c007982

Please sign in to comment.