@@ -263,15 +263,18 @@ export function PanoramaChart({ isExpanded, onToggleExpanded, showExpandToggle =
263263 } , [ selectedSite , siteDragPreview ] ) ;
264264
265265 const nodeCandidates = useMemo < PanoramaNodeCandidate [ ] > ( ( ) => {
266- const simulation = sites . map ( ( site ) => ( {
267- id : `sim:${ site . id } ` ,
268- name : site . name ,
269- lat : site . position . lat ,
270- lon : site . position . lon ,
271- groundElevationM : site . groundElevationM ,
272- antennaHeightM : site . antennaHeightM ,
273- rxGainDbi : site . rxGainDbi ,
274- } ) ) ;
266+ const povSiteId = selectedSiteEffective ?. id ;
267+ const simulation = sites
268+ . filter ( ( site ) => site . id !== povSiteId )
269+ . map ( ( site ) => ( {
270+ id : `sim:${ site . id } ` ,
271+ name : site . name ,
272+ lat : site . position . lat ,
273+ lon : site . position . lon ,
274+ groundElevationM : site . groundElevationM ,
275+ antennaHeightM : site . antennaHeightM ,
276+ rxGainDbi : site . rxGainDbi ,
277+ } ) ) ;
275278
276279 const libraryById = new Set ( simulation . map ( ( entry ) => entry . id . replace ( "sim:" , "" ) ) ) ;
277280 const sharedLibrary = discoveryLibraryVisible
@@ -301,7 +304,7 @@ export function PanoramaChart({ isExpanded, onToggleExpanded, showExpandToggle =
301304 : [ ] ;
302305
303306 return [ ...simulation , ...sharedLibrary , ...mqtt ] ;
304- } , [ sites , siteLibrary , mqttNodes , discoveryLibraryVisible , discoveryMqttVisible ] ) ;
307+ } , [ sites , siteLibrary , mqttNodes , discoveryLibraryVisible , discoveryMqttVisible , selectedSiteEffective ] ) ;
305308
306309 useEffect ( ( ) => {
307310 setPinnedTarget ( null ) ;
0 commit comments