From a74aeacc843b83a51d0708ffb92ac1de8b077b03 Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 10 Apr 2023 23:17:06 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Eliminados=20elementos=20de=20depuraci?= =?UTF-8?q?=C3=B3n=20manual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/friends/FriendList.tsx | 2 +- webapp/src/components/friends/Friends.tsx | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/webapp/src/components/friends/FriendList.tsx b/webapp/src/components/friends/FriendList.tsx index f5ad1e0..a000258 100644 --- a/webapp/src/components/friends/FriendList.tsx +++ b/webapp/src/components/friends/FriendList.tsx @@ -65,7 +65,7 @@ const findFullPersonProfile = async ( const see: string[] = getTermAll(person, rdfs.seeAlso).map(a => a.value) for (const uri of [...same, ...see]) { - console.log('extending', uri) + //console.log('extending', uri) if (!visited.has(uri)) await findFullPersonProfile(webId, visited, response, false, uri) } diff --git a/webapp/src/components/friends/Friends.tsx b/webapp/src/components/friends/Friends.tsx index a28ae71..bef6d69 100644 --- a/webapp/src/components/friends/Friends.tsx +++ b/webapp/src/components/friends/Friends.tsx @@ -26,7 +26,6 @@ const FriendsList: React.FC = () => { const webId = session.info.webId const data = await findPersonData(webId!) setPersonData(data) - console.log("loadPersonData") } async function fetchFriends() { @@ -34,8 +33,6 @@ const FriendsList: React.FC = () => { personData.friends.map((friend) => findPersonData(friend)) ); setFriendList(names); - console.log(names.length) - console.log("fetchFriends") } const handleAddFriend = async (webId: string) => { From 2dd59e02d8485d16f0d8fc24547cc2f80534b770 Mon Sep 17 00:00:00 2001 From: UO284541 Date: Mon, 10 Apr 2023 23:17:11 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Eliminado=20c=C3=B3digo=20innecesario.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/map/Map.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/webapp/src/components/map/Map.tsx b/webapp/src/components/map/Map.tsx index bf2dc46..5c779e1 100644 --- a/webapp/src/components/map/Map.tsx +++ b/webapp/src/components/map/Map.tsx @@ -18,12 +18,6 @@ interface ICouple { infoWindow: GoogleInfoWindow; } -/* - type MarkerMap = { - [id: number]: ICouple; - } -*/ - type GoogleMap = google.maps.Map; type GoogleLatLng = google.maps.LatLng; type GoogleMarker = google.maps.Marker; @@ -60,7 +54,6 @@ const Map: React.FC = (props) => { const { session } = useSession(); const ref = useRef(null); // Contenedor HTML del mapa const [map, setMap] = useState(); // useState para conservar la referencia al mapa - // const markerHashMap = useRef({}); // HashMap para conservar una relación entre el marcador en el mapa y su versión persistente const [marker, setMarker] = useState(); // useState para comunicar el listener con el método const listenerRef = useRef(); const { state: markers, dispatch } = useContext(MarkerContext); // Proveedor de los marcadores en el POD @@ -391,7 +384,7 @@ const Map: React.FC = (props) => { address: iPMarker.address, category: iPMarker.category, description: iPMarker.description, - latLng: new google.maps.LatLng(iPMarker.lat, iPMarker.lng), + latLng: new google.maps.LatLng(iPMarker.lat, iPMarker.lng) }; }