diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js index 2ef91f896..299f0f794 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/function/js/functions.js @@ -310,7 +310,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) { canEdit: false, canDelete: true, uniqueCol : ['provider'], disabled: 'isDisabled', control: 'unique-col-collection', visible: function() { - return this.node_data && this.node_data._type != 'procedure'; + return this.node && this.node.type != "procedure"; } } ],