File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,7 @@ function isCollectionIntersecting(collection: CollectionType) {
96
96
return turf .intersect (collectionBboxPolygon , drawnBboxPolygon ) !== null
97
97
}
98
98
99
- let { data : countries } = await useFetch (
100
- url .protocol + ' //' + url .host + ' /countries.json' ,
101
- )
99
+ let countries = await $fetch (url .protocol + ' //' + url .host + ' /countries.json' )
102
100
103
101
console .log (countries , url .protocol + ' //' + url .host + ' /countries.json' )
104
102
@@ -108,7 +106,7 @@ let intersectingCountries = computed(() => {
108
106
109
107
const drawnPolygon = polygons .value [0 ]
110
108
111
- return countries . value ?.features .filter ((country ) => {
109
+ return countries ?.features .filter ((country ) => {
112
110
return turf .intersect (drawnPolygon , country .geometry ) !== null
113
111
})
114
112
})
You can’t perform that action at this time.
0 commit comments