mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Use the correct way to update the state variable using depChange method.
This commit is contained in:
parent
3da85f415d
commit
031167fbea
@ -119,11 +119,12 @@ export default class PgaJobStepSchema extends BaseUISchema {
|
||||
options: this.fieldOptions.databases,
|
||||
controlProps: {allowClear: true, placeholder: ''},
|
||||
disabled: function(state) {
|
||||
let retVal = !state.jstkind || !state.jstconntype;
|
||||
if (retVal) {
|
||||
state.jstdbname = null;
|
||||
return !state.jstkind || !state.jstconntype;
|
||||
},
|
||||
depChange: (state)=>{
|
||||
if (!state.jstkind || !state.jstconntype) {
|
||||
return {jstdbname: null};
|
||||
}
|
||||
return retVal;
|
||||
},
|
||||
deps: ['jstkind', 'jstconntype'],
|
||||
helpMessage: gettext('Please select the database on which the job step will run.'),
|
||||
|
Loading…
Reference in New Issue
Block a user