Prechádzať zdrojové kódy

Merge branch 'filter-map-fix' of SashaGoncharov19/nomadmania-app into dev

Viktoriia 1 rok pred
rodič
commit
3650504633

+ 1 - 1
src/modules/api/photos/queries/use-post-set-upload-temp.tsx

@@ -20,7 +20,7 @@ export const postSetUploadTemp = async (data: PostSetTempData) => {
   };
 
   try {
-    const response = await axios.post(url, formData, config as any);
+    const response = await axios.postForm(url, formData, config as any);
     return response.data;
   } catch (error) {
     console.error('Error', error);

+ 1 - 0
src/screens/InAppScreens/MapScreen/index.tsx

@@ -510,6 +510,7 @@ const MapScreen: React.FC<MapScreenProps> = ({ navigation }) => {
 
   const renderMapTiles = (url: string, cacheDir: string, zIndex: number, opacity = 1) => (
     <UrlTile
+      key={`${url}-${cacheDir}`}
       urlTemplate={`${url}/{z}/{x}/{y}`}
       maximumZ={15}
       maximumNativeZ={13}

+ 1 - 0
src/screens/InAppScreens/ProfileScreen/UsersMap/index.tsx

@@ -51,6 +51,7 @@ const UsersMapScreen: FC<Props> = ({ navigation, route }) => {
 
   const renderMapTiles = (url: string, zIndex: number, opacity = 1) => (
     <UrlTile
+      key={url}
       urlTemplate={`${url}/{z}/{x}/{y}`}
       maximumZ={15}
       maximumNativeZ={13}