feat: trim for aplhabet sort
This commit is contained in:
@@ -125,7 +125,7 @@ export const StationListPage = observer(() => {
|
||||
|
||||
const rows = useMemo(() => {
|
||||
const { selectedCityId } = selectedCityStore;
|
||||
const query = searchQuery.toLowerCase();
|
||||
const query = searchQuery.trim().toLowerCase();
|
||||
return stationLists[language].data
|
||||
.filter((station: any) => !selectedCityId || station.city_id === selectedCityId)
|
||||
.filter(
|
||||
|
||||
Reference in New Issue
Block a user