File tree Expand file tree Collapse file tree
app/src/app/components/Map Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,6 +286,7 @@ const PinCommentsLayer = () => {
286286 const mapMetadata = useMapMetadata ( ) ;
287287 const setErrorNotification = useMapStore ( state => state . setErrorNotification ) ;
288288 const [ popupIndex , setPopupIndex ] = useState < number | null > ( null ) ;
289+ const isEditing = useMapStore ( state => state . isEditing ) ;
289290 const popupContent =
290291 popupIndex !== null && mapMetadata ?. comments ?. [ popupIndex ] ?. type === 'location'
291292 ? ( mapMetadata ?. comments ?. [ popupIndex ] as LocationComment )
@@ -328,7 +329,7 @@ const PinCommentsLayer = () => {
328329 longitude = { comment . lng }
329330 latitude = { comment . lat }
330331 anchor = "center"
331- draggable = { true }
332+ draggable = { isEditing }
332333 onDragEnd = { e => handleDrag ( e , index ) }
333334 onClick = { ( ) => {
334335 setPopupIndex ( index ) ;
You can’t perform that action at this time.
0 commit comments