From e14c18b84a918ebb4f151797fd2424fa822f0c0a Mon Sep 17 00:00:00 2001 From: syam babu Date: Tue, 4 Jun 2024 17:11:46 +0530 Subject: [PATCH] fix: changed map of containPlace uri to sameAs field. closes #1134 --- src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx | 4 ++-- src/pages/Dashboard/PlaceReadOnly/PlaceReadOnly.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx index c3425c177..150905ed9 100644 --- a/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx +++ b/src/pages/Dashboard/CreateNewPlace/CreateNewPlace.jsx @@ -920,7 +920,7 @@ function CreateNewPlace() { id: place?.id, name: place?.name, image: place?.image, - uri: place?.derivedFrom?.uri, + uri: artsDataLinkChecker(place?.sameAs), }; }); setSelectedContainsPlaces( @@ -1004,7 +1004,7 @@ function CreateNewPlace() { id: place?.id, name: place?.name, image: place?.image, - uri: place?.derivedFrom?.uri, + uri: artsDataLinkChecker(place?.sameAs), }; }); setSelectedContainsPlaces( diff --git a/src/pages/Dashboard/PlaceReadOnly/PlaceReadOnly.jsx b/src/pages/Dashboard/PlaceReadOnly/PlaceReadOnly.jsx index e6ce148e1..61baa9d8c 100644 --- a/src/pages/Dashboard/PlaceReadOnly/PlaceReadOnly.jsx +++ b/src/pages/Dashboard/PlaceReadOnly/PlaceReadOnly.jsx @@ -173,7 +173,7 @@ function PlaceReadOnly() { id: place?.id, name: place?.name, image: place?.image, - uri: place?.derivedFrom?.uri, + uri: artsDataLinkChecker(place?.sameAs), }; }); setSelectedContainsPlaces(