diff --git a/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx b/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx index 8edc71df7..784924191 100644 --- a/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx +++ b/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx @@ -973,7 +973,7 @@ class ERDTool extends React.Component { - {!this.props.inTest && {this.canvasEle = ele?.ref?.current;}} engine={this.diagram.getEngine()} />} + {!this.props.isTest && {this.canvasEle = ele?.ref?.current;}} engine={this.diagram.getEngine()} />} @@ -1001,7 +1001,7 @@ ERDTool.propTypes = { pgAdmin: PropTypes.object.isRequired, panel: PropTypes.object, classes: PropTypes.object, - inTest: PropTypes.bool, + isTest: PropTypes.bool, }; export const ERDCanvasSettings = React.createContext({}); diff --git a/web/regression/javascript/erd/erd_core_spec.js b/web/regression/javascript/erd/erd_core_spec.js index faed0e85e..cce78d2ce 100644 --- a/web/regression/javascript/erd/erd_core_spec.js +++ b/web/regression/javascript/erd/erd_core_spec.js @@ -15,7 +15,7 @@ import { PortModelAlignment } from '@projectstorm/react-diagrams'; describe('ERDCore', ()=>{ let eleFactory = jasmine.createSpyObj('nodeFactories', { 'registerFactory': null, - 'getFactory': jasmine.createSpyObj('getFactory', ['generateModel', 'calculateRoutingMatrix']), + 'getFactory': jasmine.createSpyObj('getFactory', ['generateModel']), }); let erdEngine = jasmine.createSpyObj('engine', { 'getNodeFactories': eleFactory,