mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
remove non-matches from input source arrays
This commit is contained in:
parent
4f13592430
commit
261a635005
@ -518,10 +518,12 @@ function AddEditCredentialsController (
|
||||
|
||||
const sourcesToDisassociate = fieldsToDisassociate
|
||||
.map(name => vm.inputSources.initialItems
|
||||
.find(({ input_field_name }) => input_field_name === name));
|
||||
.find(({ input_field_name }) => input_field_name === name))
|
||||
.filter(source => source !== undefined);
|
||||
const sourcesToAssociate = fieldsToAssociate
|
||||
.map(name => vm.inputSources.items
|
||||
.find(({ input_field_name }) => input_field_name === name));
|
||||
.find(({ input_field_name }) => input_field_name === name))
|
||||
.filter(source => source !== undefined);
|
||||
|
||||
// remove inputs with empty string values
|
||||
let filteredInputs = _.omit(data.inputs, (value) => value === '');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user