From ae18b9a0ac7534d83a6e873a9b0d677ba2b08431 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Mon, 17 Aug 2020 17:26:58 +0530 Subject: [PATCH] Fixed schema diff issue when selecting any identical node. --- .../tools/schema_diff/static/js/schema_diff_dependency.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/tools/schema_diff/static/js/schema_diff_dependency.js b/web/pgadmin/tools/schema_diff/static/js/schema_diff_dependency.js index 50e7f3b77..67c18460d 100644 --- a/web/pgadmin/tools/schema_diff/static/js/schema_diff_dependency.js +++ b/web/pgadmin/tools/schema_diff/static/js/schema_diff_dependency.js @@ -12,7 +12,8 @@ function handleDependencies() { let isChecked = event.target.checked || (event.target.checked === undefined && event.target.className && event.target.className.indexOf('unchecked') == -1); - let isHeaderSelected = event.target.id.includes('header-selector'); + let isHeaderSelected = false; + if (event.target.id !== undefined) isHeaderSelected = event.target.id.includes('header-selector'); if (this.gridContext && this.gridContext.rowIndex && _.isUndefined(this.gridContext.row.rows)) { // Single Row Selection