Skip to content

Commit 2415f7b

Browse files
YohhMath-R
authored andcommitted
front: searchrollingstock: fix rollingstock list showing loader when empty
- remove condition verifying if rollingstock list length is true - the loader is still well displayed while searching
1 parent dfdd7ca commit 2415f7b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

front/src/modules/rollingStock/components/RollingStockSelector/SearchRollingStock.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ const SearchRollingStock = ({
171171
}, [isSuccess]);
172172

173173
useEffect(() => {
174-
if (rollingStocks && rollingStocks.length !== 0) {
175-
updateSearch();
176-
}
174+
updateSearch();
177175
// eslint-disable-next-line react-hooks/exhaustive-deps
178176
}, [filters, rollingStocks]);
179177

0 commit comments

Comments
 (0)