mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
fix SmartInventoryForm chips
This commit is contained in:
parent
c58c7e285c
commit
8df6dc0ca0
@ -196,7 +196,7 @@ function HostFilterLookup({
|
||||
|
||||
function buildChips(filter = {}) {
|
||||
const inputGroupChips = Object.keys(filter).reduce((obj, param) => {
|
||||
const parsedKey = param.replace('__icontains', '').replace('or__', '');
|
||||
const parsedKey = param.replace('or__', '');
|
||||
const chipsArray = [];
|
||||
|
||||
if (Array.isArray(filter[param])) {
|
||||
|
||||
@ -26,7 +26,7 @@ const mockFormValues = {
|
||||
description: '',
|
||||
organization: { id: 1, name: 'mock organization' },
|
||||
host_filter:
|
||||
'name__icontains=mock and name__icontains=foo and groups__name=mock group',
|
||||
'name__icontains=mock and name__icontains=foo and groups__name__icontains=mock group',
|
||||
instance_groups: [{ id: 123 }],
|
||||
variables: '---',
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user