mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed 'Remove the unnecessary boolean literals' code smell.
This commit is contained in:
@@ -311,9 +311,8 @@ export function GraphVisualiser({initColumns}) {
|
||||
// Check the previously selected X axis column is exist in the list of
|
||||
// new columns. If exists then set that as it is.
|
||||
setXAxis((prevXAxis)=>{
|
||||
if (prevXAxis === '<Row Number>') {
|
||||
return prevXAxis;
|
||||
} else if (newColumns.map((c)=>c.name).includes(prevXAxis)) {
|
||||
if (prevXAxis === '<Row Number>' ||
|
||||
newColumns.map((c)=>c.name).includes(prevXAxis)) {
|
||||
return prevXAxis;
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -929,7 +929,7 @@ export function ResultSet() {
|
||||
eventBus.fireEvent(QUERY_TOOL_EVENTS.RESET_GRAPH_VISUALISER, columns);
|
||||
}, [columns]);
|
||||
|
||||
const fetchMoreRows = async (all=false, callback)=>{
|
||||
const fetchMoreRows = async (all=false, callback=undefined)=>{
|
||||
if(queryData.has_more_rows) {
|
||||
setIsLoadingMore(true);
|
||||
const res = await rsu.current.getMoreRows(all);
|
||||
|
||||
Reference in New Issue
Block a user