Skip to content

Commit

Permalink
useWidgetFetch: protect agains empty source
Browse files Browse the repository at this point in the history
  • Loading branch information
zbigg committed Jul 31, 2024
1 parent 6dd6cb9 commit 8c15cb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-widgets/src/hooks/useWidgetFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default function useWidgetFetch(

const source2 = useMemo(() => {
if (
!source ||
!geometryToIntersect ||
!source.dataResolution ||
source.spatialDataType === 'geo'
Expand Down

0 comments on commit 8c15cb9

Please sign in to comment.