From f9af74529c52a097f2543ec52145bbf4c0ec75d2 Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Mon, 10 Mar 2025 18:44:24 +0530 Subject: [PATCH] Fixed an issue where geometries in the geometry viewer will render partially when the container was resized. #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 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} >