Fix issue where property dialog of column should open properly for EPAS v12. Fixes #4343

This commit is contained in:
Akshay Joshi
2019-06-11 17:48:01 +05:30
parent 5437a8adab
commit d774a0ff67
2 changed files with 4 additions and 1 deletions

View File

@@ -230,6 +230,7 @@ define('pgadmin.node.column', [
if (
m.top && ((
!_.isUndefined(m.top.get('oid')) &&
!_.isUndefined(m.top.get('primary_key')) &&
m.top.get('primary_key').length > 0 &&
!_.isUndefined(m.top.get('primary_key').first().get('oid'))
) || (
@@ -255,6 +256,7 @@ define('pgadmin.node.column', [
}
// If primary key already exist then disable.
if (m.top && !_.isUndefined(m.top.get('oid')) &&
!_.isUndefined(m.top.get('primary_key')) &&
m.top.get('primary_key').length > 0 &&
!_.isUndefined(m.top.get('primary_key').first().get('oid'))) {