From 387976043069e261c8a2ab73ccb355cc87f3cdcb Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Fri, 13 Jan 2017 13:30:17 -0500 Subject: [PATCH] Only try to regex replace quotes in strings --- awx/ui/client/src/shared/smart-search/queryset.service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/src/shared/smart-search/queryset.service.js b/awx/ui/client/src/shared/smart-search/queryset.service.js index c759e86669..f333abc57b 100644 --- a/awx/ui/client/src/shared/smart-search/queryset.service.js +++ b/awx/ui/client/src/shared/smart-search/queryset.service.js @@ -80,7 +80,9 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear return concated; } else { - value = value.replace(/"|'/g, ""); + if(value && typeof value === 'string') { + value = value.replace(/"|'/g, ""); + } return `${key}=${value}&`; } }