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