← All changes
|
resources/js/components/trip-form/LocationPicker.tsx
+3
-3
3.0.8
→
3.0.17
View file →
| @@ -170,9 +170,9 @@ | ||
| 170 | 170 | } |
| 171 | 171 | }, 100); |
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 174 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 175 | 175 | }, [value.latitude, value.longitude, defaultZoom]); |
| 176 | 176 | |
| 177 | 177 | // Load Leaflet dynamically when map is shown |
| 178 | 178 | useEffect(() => { |
| @@ -178,9 +178,9 @@ | ||
| 178 | 178 | useEffect(() => { |
| 179 | 179 | if (showMap && !mapLoading && !mapInstanceRef.current) { |
| 180 | 180 | loadMap(); |
| 181 | 181 | } |
| 182 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 182 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 183 | 183 | }, [showMap]); |
| 184 | 184 | |
| 185 | 185 | // Add marker when map becomes ready with existing coordinates |
| 186 | 186 | useEffect(() => { |
| @@ -201,9 +201,9 @@ | ||
| 201 | 201 | } |
| 202 | 202 | }, 150); |
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 205 | + // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 206 | 206 | }, [mapReady, value.latitude, value.longitude, defaultZoom]); |
| 207 | 207 | |
| 208 | 208 | const loadMap = async () => { |
| 209 | 209 | setMapLoading(true); |