File tree Expand file tree Collapse file tree
web/pgadmin/tools/sqleditor/static/js/components/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1496,13 +1496,13 @@ export function ResultSet() {
14961496 return ( ) => eventBus . deregisterListener ( QUERY_TOOL_EVENTS . TRIGGER_ADD_ROWS , triggerAddRows ) ;
14971497 } , [ columns , selectedRows . size ] ) ;
14981498
1499- const gvRenderKeyRef = useRef ( 0 ) ;
1499+ const gvColumnsSignature = React . useMemo ( ( ) => columns . map ( c => c . key ) . join ( ',' ) , [ columns ] ) ;
1500+
15001501 const openGeometryViewerTab = React . useCallback ( ( column , rowsData ) => {
1501- gvRenderKeyRef . current ++ ;
15021502 layoutDocker . openTab ( {
15031503 id : PANELS . GEOMETRY ,
15041504 title : gettext ( 'Geometry Viewer' ) ,
1505- content : < GeometryViewer key = { gvRenderKeyRef . current } rows = { rowsData } columns = { columns } column = { column } /> ,
1505+ content : < GeometryViewer key = { gvColumnsSignature } rows = { rowsData } columns = { columns } column = { column } /> ,
15061506 closable : true ,
15071507 } , PANELS . MESSAGES , 'after-tab' , true ) ;
15081508 } , [ layoutDocker , columns ] ) ;
You can’t perform that action at this time.
0 commit comments