From 706019d639556702355fb72085f4350fed2a6ea2 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 3 Jan 2023 10:28:03 +0530 Subject: [PATCH] Fixed an issue where Geometry viewer does not show popup when columns are less than 3. #5641 --- .../sqleditor/static/js/components/sections/GeometryViewer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ad07d0348..cf5ed1d57 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx @@ -158,7 +158,7 @@ function parseData(rows, columns, column) { }); let getPopupContent; - if (columns.length >= 3) { + if (columns.length >= 2) { // add popup when geometry has properties getPopupContent = function (geojson) { let geometry = selectedGeometries[geoJSONs.indexOf(geojson)];