Skip to content

Commit

Permalink
fix: Remove waypoints from the core starmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Jan 16, 2023
1 parent f65f703 commit 70f7b82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/cores/StarmapCore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export function SolarSystemWrapper() {

const selectedObjectIds = useStarmapStore(store => store.selectedObjectIds);
const planetsHidden = useStarmapStore(store => store.planetsHidden);
const isCore = useStarmapStore(store => store.viewingMode === "core");

const {interpolate} = useLiveQuery();
return (
Expand Down Expand Up @@ -369,9 +370,11 @@ export function SolarSystemWrapper() {

return null;
})}
{waypoints.map(waypoint => (
<WaypointEntity key={waypoint.id} waypoint={waypoint} viewscreen />
))}
{isCore
? null
: waypoints.map(waypoint => (
<WaypointEntity key={waypoint.id} waypoint={waypoint} viewscreen />
))}
{starmapShips.map(ship => (
<Suspense key={ship.id} fallback={null}>
<ErrorBoundary
Expand Down

0 comments on commit 70f7b82

Please sign in to comment.