Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 21, 2024
1 parent 6985e3b commit 2f72b75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import esriConfig from '@arcgis/core/config';
import Graphic from '@arcgis/core/Graphic';
import Viewpoint from '@arcgis/core/Viewpoint.js';
import {
Avatar,
Drawer,
Footer,
Header,
Expand Down Expand Up @@ -136,7 +135,6 @@ export default function App() {
Electrofishing Query
</h2>
</div>
<Avatar user={currentUser} />
</Header>
{currentUser ? (
<section className="relative flex min-h-0 flex-1 gap-2 overflow-x-hidden md:mr-2">
Expand Down
6 changes: 6 additions & 0 deletions src/components/contexts/MapProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export const MapProvider = ({ children }: { children: ReactNode }) => {
return;
}

if (!mapView.map) {
console.warn('mapView does not have a map property');

return;
}

mapView.map.addMany(layers);
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/filters/SpeciesLength.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function RowControls({ species, min, max, onChange, addRow, removeRow, isLast }:
<Select
className="min-w-28"
label="Species"
onSelectionChange={(newValue: string) => onChange({ species: newValue, min, max })}
onSelectionChange={(newValue) => onChange({ species: newValue as string, min, max })}
placeholder=" "
selectedKey={species}
>
Expand Down

0 comments on commit 2f72b75

Please sign in to comment.