Skip to content

Commit 121d29d

Browse files
committed
Fixed some minor data assignment issue in react states
1 parent a047a51 commit 121d29d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/pgadmin/tools/sqleditor/static/js/components/sections/GeometryViewer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const StyledBox = styled(Box)(({theme}) => ({
4949
},
5050
}));
5151

52-
const PK_COLUMN_NAMES = ['id', 'oid', 'ctid'];
52+
const PK_COLUMN_NAMES = ['id', 'oid'];
5353

5454
function parseEwkbData(rows, column) {
5555
let key = column.key;
@@ -503,7 +503,7 @@ export function GeometryViewer({rows, columns, column}) {
503503
prevStateRef.current = {
504504
columnKey: currentColumnKey,
505505
columnNames: currentColumnNames,
506-
selectedRowData: [],
506+
selectedRowData: rows,
507507
};
508508
return;
509509
}

0 commit comments

Comments
 (0)