From 6bae730c084026125889c51bf9305f97b0406dd6 Mon Sep 17 00:00:00 2001 From: Jeff Bliss Date: Wed, 28 Aug 2024 13:52:45 -0400 Subject: [PATCH] fixed --- src/components/NDVIButton.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/NDVIButton.jsx b/src/components/NDVIButton.jsx index f655e1aa..5a4ef612 100644 --- a/src/components/NDVIButton.jsx +++ b/src/components/NDVIButton.jsx @@ -50,9 +50,10 @@ export default function NDVIButtonWrapper(props) { const response = await fetch(`${ndviEndpoint}?lat=${popupPosition[0]}&lng=${popupPosition[1]}`); return await response.json(); }, + enabled: !!popupPosition, }); - if (isPending) console.log('isPending'); + if (isPending) console.log('NDVI Pending'); if (error) return 'An error has occurred: ' + error.message; React.useEffect(() => {