Skip to content

Commit

Permalink
Feat: detections 객체배열할당
Browse files Browse the repository at this point in the history
  • Loading branch information
Catleap02 committed Nov 15, 2024
1 parent b735ad1 commit 2340f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Camera/CameraPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const CameraPage: React.FC = () => {
const aiResponse = await axios.post("http://34.64.216.227:8080", {
image: capturedImage,
});
const detections = aiResponse.data;
const { detections } = aiResponse.data;

if (!detections || detections.length === 0) {
setLoading(false);
Expand Down

0 comments on commit 2340f30

Please sign in to comment.