fix SmartInventoryForm chips

This commit is contained in:
Keith Grant 2020-11-02 11:24:01 -08:00
parent c58c7e285c
commit 8df6dc0ca0
2 changed files with 2 additions and 2 deletions

View File

@ -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])) {

View File

@ -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: '---',
};