diff --git a/docs/en_US/release_notes_6_10.rst b/docs/en_US/release_notes_6_10.rst index fa97eac2d..78acf2753 100644 --- a/docs/en_US/release_notes_6_10.rst +++ b/docs/en_US/release_notes_6_10.rst @@ -29,6 +29,7 @@ Bug fixes | `Issue #7383 `_ - Fixed an issue where Preferences are not saved when the dialog is maximized. | `Issue #7388 `_ - Fixed an issue where an error message fills the entire window if the query is long. | `Issue #7393 `_ - Ensure that the editor position should not get changed once it is opened. + | `Issue #7394 `_ - Fixed an issue where geometry is not visible when a single cell is selected. | `Issue #7399 `_ - Added missing toggle case keyboard shortcuts to the query tool. | `Issue #7402 `_ - Ensure that Dashboard graphs should be refreshed on changing the node from the browser tree. | `Issue #7403 `_ - Fixed an issue where comments on domain constraints were not visible when selecting a domain node. diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSet.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSet.jsx index 02779262b..28ba94b4f 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSet.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSet.jsx @@ -1194,7 +1194,12 @@ export function ResultSet() { useEffect(()=>{ const renderGeometries = (column)=>{ - let selRowsData = selectedRows.size === 0 ? rows : rows.filter((r)=>selectedRows.has(rowKeyGetter(r))); + let selRowsData = rows; + if(selectedRows.size != 0) { + selRowsData = rows.filter((r)=>selectedRows.has(rowKeyGetter(r))); + } else if(selectedCell.current[0]) { + selRowsData = [selectedCell.current[0]]; + } LayoutHelper.openTab(queryToolCtx.docker, { id: PANELS.GEOMETRY, title:gettext('Geometry Viewer'),