mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use uplot for Dashboard graphs to reduce CPU usage. #5794
This commit is contained in:
@@ -175,9 +175,9 @@ define('pgadmin.browser.node', [
|
||||
// Show query tool only in context menu of supported nodes.
|
||||
if (_.indexOf(pgAdmin.unsupported_nodes, self.type) == -1) {
|
||||
let enable = function(itemData) {
|
||||
if (itemData._type == 'database' && itemData.allowConn)
|
||||
if (itemData?._type == 'database' && itemData?.allowConn)
|
||||
return true;
|
||||
else if (itemData._type != 'database')
|
||||
else if (itemData?._type != 'database')
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user