From 973cd1d15c1a51a849ad12a01b97e2a058b8aa2e Mon Sep 17 00:00:00 2001 From: pravesh-sharma Date: Mon, 10 Mar 2025 18:01:47 +0530 Subject: [PATCH] Fixed an issue where geometries wouldn't render when the container height was changed. #8462 --- .../static/js/components/sections/GeometryViewer.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 6c852e1dabf..a43ee5ad861 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} >