Skip to content

Commit

Permalink
Fix switching of the stop all robots button
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor authored and aeshub committed Nov 13, 2023
1 parent fee5a87 commit 641386f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export function RobotStatusSection() {
)
setRobots(relevantRobots)

const missionQueueFozenStatus = enabledRobots
const missionQueueFozenStatus = relevantRobots
.map((robot: Robot) => {
return robot.missionQueueFrozen
})
.filter((status) => status === true)

if (missionQueueFozenStatus.length > 0 && !safeZoneStatus) switchSafeZoneStatus(true)
if (missionQueueFozenStatus.length > 0) switchSafeZoneStatus(true)
else switchSafeZoneStatus(false)
}, [enabledRobots, installationCode])

Expand Down

0 comments on commit 641386f

Please sign in to comment.