mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -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,
|
options: this.fieldOptions.databases,
|
||||||
controlProps: {allowClear: true, placeholder: ''},
|
controlProps: {allowClear: true, placeholder: ''},
|
||||||
disabled: function(state) {
|
disabled: function(state) {
|
||||||
let retVal = !state.jstkind || !state.jstconntype;
|
return !state.jstkind || !state.jstconntype;
|
||||||
if (retVal) {
|
},
|
||||||
state.jstdbname = null;
|
depChange: (state)=>{
|
||||||
|
if (!state.jstkind || !state.jstconntype) {
|
||||||
|
return {jstdbname: null};
|
||||||
}
|
}
|
||||||
return retVal;
|
|
||||||
},
|
},
|
||||||
deps: ['jstkind', 'jstconntype'],
|
deps: ['jstkind', 'jstconntype'],
|
||||||
helpMessage: gettext('Please select the database on which the job step will run.'),
|
helpMessage: gettext('Please select the database on which the job step will run.'),
|
||||||
|
Loading…
Reference in New Issue
Block a user