Fixed an issue while creating a new database throwing an error that failed to retrieve data. Fixes #7322

This commit is contained in:
Pradip Parkale
2022-04-22 15:42:04 +05:30
committed by Akshay Joshi
parent f28e8126af
commit ab8e9a8ea5
6 changed files with 37 additions and 30 deletions

View File

@@ -160,7 +160,7 @@ define(
pgBrowser.Events.on('pgadmin:database:connected', () => {
if(myPanel.isVisible() && myPanel._type == 'dashboard' && myPanel._type !== 'properties') {
if(myPanel.isVisible() && myPanel._type !== 'properties') {
getPanelView(
pgBrowser.tree,
$container[0],

View File

@@ -119,6 +119,8 @@ export function getPanelView(
nodeData={nodeData}
node={node}
item={item}
did={((!_.isUndefined(treeNodeInfo)) && (!_.isUndefined(treeNodeInfo['database']))) ? treeNodeInfo['database']._id: 0}
dbConnected={!_.isUndefined(treeNodeInfo) && !_.isUndefined(treeNodeInfo['database']) ? treeNodeInfo.database.connected: false}
/>
</Theme>,
container