diff --git a/src/components/container/GeoStacApp.jsx b/src/components/container/GeoStacApp.jsx index 09b51709232c21940bf405b725272f16ce9bc31a..2382e02bd045bcf50cab395739d1b9e1190f8719 100644 --- a/src/components/container/GeoStacApp.jsx +++ b/src/components/container/GeoStacApp.jsx @@ -14,10 +14,10 @@ import Sidebar from "../presentational/Sidebar.jsx"; */ export default function GeoStacApp(props) { - let [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); + const [targetPlanet, setTargetPlanet] = React.useState(props.mapList.systems[4].bodies[0]); // make sure its a stac item for appending stuff - let [queryAddress, setQueryAddress] = React.useState( - props.mapList.systems[4].bodies[0].collections[0].links.find(link => link.rel === "items").href + "?"); + const [queryAddress, setQueryAddress] = React.useState( + props.mapList.systems[4].bodies[0].collections[0].links.find(link => link.rel === "items").href); /** * Handles target body selection