Skip to content

Commit f373361

Browse files
committed
Temp fix to skip rendering Photo items on the map for the demo
This needs to be done properly, there are many non-location based mission items that shouldn't be rendered. The structure needs to be updated for this.
1 parent 6dde6e9 commit f373361

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/routes/MissionPlanner/components/MissionPlannerView.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export const getMarkerProps = (item, updateMissionItem) => {
6666

6767
export const MissionPlannerView = ({mission, updateMissionItem, addMissionItem, deleteMissionItem, loadNfz, noFlyZones}) => {
6868
const missionItemsExt = getMissionItemsExt(mission);
69-
const markersExt = missionItemsExt.map((item) => getMarkerProps(item, updateMissionItem));
69+
const filteredMissionItemsExt = missionItemsExt.filter((item) => {
70+
return (item.command !== 203);
71+
});
72+
const markersExt = filteredMissionItemsExt.map((item) => getMarkerProps(item, updateMissionItem));
7073

7174
return (
7275
<div styleName="mission-planner-view">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy