Use uplot for Dashboard graphs to reduce CPU usage. #5794

This commit is contained in:
Aditya Toshniwal
2023-02-06 15:55:02 +05:30
committed by GitHub
parent f3bb4776e4
commit 4a3bcfa202
14 changed files with 230 additions and 126 deletions

View File

@@ -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;