mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue while creating a new database throwing an error that failed to retrieve data. Fixes #7322
This commit is contained in:
committed by
Akshay Joshi
parent
f28e8126af
commit
ab8e9a8ea5
@@ -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],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user