Skip to content

Commit 56cb3ae

Browse files
committed
front: fix clear ci input does not clear ch input in map op search
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
1 parent 3d28c83 commit 56cb3ae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

front/src/common/Map/Search/useSearchOperationalPoint.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useState, useEffect, useMemo, useCallback } from 'react';
22

3-
import { isEmpty } from 'lodash';
43
import { useSelector } from 'react-redux';
54

65
import DPY_TO_MAS_OPERATIONAL_POINTS from 'assets/operationStudies/DPYToMASOperationalPoints';
@@ -175,10 +174,6 @@ export default function useSearchOperationalPoint({
175174
}
176175
}, [debouncedSearchTerm]);
177176

178-
useEffect(() => {
179-
if (isEmpty(searchResults)) setChCodeFilter(undefined);
180-
}, [searchResults]);
181-
182177
return {
183178
searchTerm,
184179
chCodeFilter,

0 commit comments

Comments
 (0)