From 6fa2ec5e6d70acc6bd933e9339b230cc87d90964 Mon Sep 17 00:00:00 2001 From: DigneshGujarathi Date: Tue, 29 Dec 2020 14:31:15 +0530 Subject: [PATCH] Feedback fixes --- src/components/UI/Form/AutoComplete/AutoComplete.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/UI/Form/AutoComplete/AutoComplete.tsx b/src/components/UI/Form/AutoComplete/AutoComplete.tsx index 9fea85e3e..16831ec98 100644 --- a/src/components/UI/Form/AutoComplete/AutoComplete.tsx +++ b/src/components/UI/Form/AutoComplete/AutoComplete.tsx @@ -99,8 +99,7 @@ export const AutoComplete: React.SFC = ({ } setSearchTerm(''); onChange(''); - } - if (asyncSearch && value.length === 0) { + } else if (asyncSearch && value.length === 0) { asyncValues.setValue([]); } if (onChange) {