Commit 90d0d075 authored by BrittainJackson7's avatar BrittainJackson7
Browse files

fixed to const

parent 395b5bb3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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