From d81747a186504b56a3d440aecb019f5486742c24 Mon Sep 17 00:00:00 2001 From: manivoxel51 Date: Mon, 8 May 2023 14:02:38 -0700 Subject: [PATCH] fix a bug with search and space replacement --- app/packages/core/src/components/Schema/SchemaSearch.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/packages/core/src/components/Schema/SchemaSearch.tsx b/app/packages/core/src/components/Schema/SchemaSearch.tsx index c8e6f95898..f137bd62f9 100644 --- a/app/packages/core/src/components/Schema/SchemaSearch.tsx +++ b/app/packages/core/src/components/Schema/SchemaSearch.tsx @@ -52,8 +52,8 @@ export const SchemaSearch = (props: Props) => { let finalSearchTerm = checkValue ? searchTerm.substring(0, searchTerm.indexOf(":")) : searchTerm; - finalSearchTerm = finalSearchTerm.replace(/\s/g, ""); - checkValue = checkValue.replace(/\s/g, ""); + finalSearchTerm = finalSearchTerm.trim(); + checkValue = checkValue.trim(); let props = finalSearchTerm.split("."); const last = props[props.length - 1];