diff --git a/src/App.tsx b/src/App.tsx index cca5309..c1724d8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -179,9 +179,9 @@ const LayersPanel = ({ return (
-
+
)}
-
-
- {routes && - currentTab === "Routes" && - routes.features - .sort((a, b) => { - if ( - !a.properties.route_short_name || - !a.properties.route_short_name - ) - return 0; - else if ( - //@ts-expect-error unreach - a.properties.route_short_name > b.properties.route_short_name - ) - return 1; - else return 0; - }) - .map((route) => { - return ( -
+
+ {routes && + currentTab === "Routes" && + routes.features + .sort((a, b) => { + if ( + !a.properties.route_short_name || + !a.properties.route_short_name + ) + return 0; + else if ( + //@ts-expect-error unreach + a.properties.route_short_name > b.properties.route_short_name + ) + return 1; + else return 0; + }) + .map((route) => { + return ( +
{flexAreas && currentTab === "Flex Areas" && ( -
-
- {flexAreas.features - .sort((a, b) => { - if (!a.properties.name || !a.properties.name) return 0; - else if (a.properties.name > b.properties.name) return 1; - else return 0; - }) - .map((area) => { - return ( -
+
+ {flexAreas.features + .sort((a, b) => { + if (!a.properties.name || !a.properties.name) return 0; + else if (a.properties.name > b.properties.name) return 1; + else return 0; + }) + .map((area) => { + return ( +
)}
@@ -266,7 +262,7 @@ const Button = ({