Skip to content
Snippets Groups Projects
Commit 90d0d075 authored by BrittainJackson7's avatar BrittainJackson7
Browse files

fixed to const

parent 395b5bb3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment