Skip to content

Commit

Permalink
Merge pull request #80 from aodn/bugs/5723-undfined-check
Browse files Browse the repository at this point in the history
Missing undefined check
  • Loading branch information
utas-raymondng authored Jul 10, 2024
2 parents 89329b0 + 9bc3abb commit c4a0385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/detail-page/context/detail-page-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const DetailPageProvider: FC<DetailPageProviderProps> = ({
const [hasSnapshotsFinished, setHasSnapshotsFinished] =
useState<boolean>(false);

const extentsLength = collection?.extent?.bbox.length;
const extentsLength = collection?.extent?.bbox?.length;
useEffect(() => {
if (photos.length === extentsLength) {
setHasSnapshotsFinished(true);
Expand Down

0 comments on commit c4a0385

Please sign in to comment.