diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/static/js/check_constraint.ui.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/static/js/check_constraint.ui.js index 0a19e0c3c..57046b0d4 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/static/js/check_constraint.ui.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/static/js/check_constraint.ui.js @@ -67,7 +67,7 @@ export default class CheckConstraintSchema extends BaseUISchema { },{ id: 'consrc', label: gettext('Check'), type: 'multiline', cell: 'text', group: gettext('Definition'), mode: ['properties', 'create', 'edit'], - readonly: obj.isReadonly, editable: true, noEmpty: true, + readonly: obj.isReadonly, noEmpty: true, editable: (state) => {return obj.isNew(state);}, },{ id: 'connoinherit', label: gettext('No inherit?'), type: 'switch', cell: 'switch', group: gettext('Definition'), mode: ['properties', 'create', 'edit'], min_version: 90200,