From 5ebc9d7d2ee82f99c2d3139e11f262db3c12546c Mon Sep 17 00:00:00 2001 From: Nikhil Mohite Date: Thu, 5 May 2022 09:52:14 +0100 Subject: [PATCH] Ensure the Copy button is enabled when columns or rows are selected in the query tool results. --- .../static/js/components/QueryToolDataGrid/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx index 26079553a..bcee25608 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////// import { Box, makeStyles } from '@material-ui/core'; import _ from 'lodash'; -import React, {useState, useEffect, useMemo, useContext, useRef} from 'react'; +import React, {useState, useEffect, useContext, useRef} from 'react'; import ReactDataGrid, {Row, useRowSelection} from 'react-data-grid'; import LockIcon from '@material-ui/icons/Lock'; import EditIcon from '@material-ui/icons/Edit'; @@ -369,7 +369,7 @@ export default function QueryToolDataGrid({columns, rows, totalRowCount, dataCha } return ( - ({onSelectedCellChange}), [])}> +