From cc9d519fac62872fb1613bbdab507a552bca33ba Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Wed, 14 Dec 2022 15:53:19 +0530 Subject: [PATCH] Incorporate review comments. --- web/pgadmin/browser/static/js/node_view.jsx | 2 +- web/pgadmin/static/js/SchemaView/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/pgadmin/browser/static/js/node_view.jsx b/web/pgadmin/browser/static/js/node_view.jsx index 455ccf787..d44188451 100644 --- a/web/pgadmin/browser/static/js/node_view.jsx +++ b/web/pgadmin/browser/static/js/node_view.jsx @@ -207,6 +207,7 @@ export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, fo ReactDOM.render( , container); } diff --git a/web/pgadmin/static/js/SchemaView/index.jsx b/web/pgadmin/static/js/SchemaView/index.jsx index da4ca7d25..b84d1e8aa 100644 --- a/web/pgadmin/static/js/SchemaView/index.jsx +++ b/web/pgadmin/static/js/SchemaView/index.jsx @@ -866,7 +866,7 @@ const usePropsStyles = makeStyles((theme)=>({ /* If its the properties tab */ function SchemaPropertiesView({ - getInitData, viewHelperProps, schema={}, itemNodeData, ...props}) { + getInitData, viewHelperProps, schema={}, ...props}) { const classes = usePropsStyles(); let defaultTab = 'General'; let tabs = {}; @@ -888,7 +888,7 @@ function SchemaPropertiesView({ }).catch(()=>{ setLoaderText(''); }); - }, [itemNodeData]); + }, []); /* A simple loop to get all the controls for the fields */