From ac530e13280e049c7052e9b2a531fad4d630d2c9 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 19 Sep 2019 14:18:46 -0400 Subject: [PATCH] utilize far instead of function for search type --- awx/ui_next/src/components/Search/Search.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/Search/Search.jsx b/awx/ui_next/src/components/Search/Search.jsx index 020bc9d852..a33e71e070 100644 --- a/awx/ui_next/src/components/Search/Search.jsx +++ b/awx/ui_next/src/components/Search/Search.jsx @@ -120,7 +120,7 @@ class Search extends React.Component { // TODO: this will probably become more sophisticated, where date // fields and string fields are passed to a formatter - const actualSearchKey = isNonStringField(searchKey) + const actualSearchKey = isNonStringField ? searchKey : `${searchKey}__icontains`;