diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx index 6c852e1da..a43ee5ad8 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx @@ -461,9 +461,7 @@ export function GeometryViewer({rows, columns, column}) { zoomControl={false} preferCanvas={true} className='GeometryViewer-mapContainer' - whenCreated={(map)=>{ - mapRef.current = map; - }} + ref={mapRef} >