feat: adjust GTFS table switcher with multiple table entries
This commit is contained in:
parent
c03c9b9448
commit
ec1a9a07ed
|
@ -36,10 +36,7 @@ function TableSwitch ({name, isFetched, oset, limit, filter}) {
|
|||
}
|
||||
};
|
||||
useEffect(()=>{
|
||||
setAryFiltered((aryFiltered)=>{
|
||||
let filtered=filterData(ary,name,filter);
|
||||
return filtered;
|
||||
});
|
||||
setAryFiltered(aryFiltered=>filterData(ary,name,filter));
|
||||
},[filter]);
|
||||
useEffect(() => {
|
||||
/*effect goes here*/
|
||||
|
|
Loading…
Reference in New Issue