mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Front-end 'push' updates for SupplyRoutes
This commit is contained in:
@@ -56,8 +56,7 @@ export default function SupplyRoute(props: SupplyRouteProps) {
|
||||
return (
|
||||
<Polyline
|
||||
positions={props.route.points}
|
||||
color={color}
|
||||
weight={weight}
|
||||
pathOptions={{ color: color, weight: weight}}
|
||||
ref={(ref) => (path.current = ref)}
|
||||
>
|
||||
<SupplyRouteTooltip {...props} />
|
||||
|
||||
@@ -7,7 +7,7 @@ export default function SupplyRoutesLayer() {
|
||||
const routes = useAppSelector(selectSupplyRoutes).routes;
|
||||
return (
|
||||
<LayerGroup>
|
||||
{routes.map((route) => {
|
||||
{Object.values(routes).map( route => {
|
||||
return <SupplyRoute key={route.id} route={route} />;
|
||||
})}
|
||||
</LayerGroup>
|
||||
|
||||
Reference in New Issue
Block a user