Skip to content

Commit

Permalink
fix(shared-data): add moveToAddressableAreaForDropTip to getAddressab…
Browse files Browse the repository at this point in the history
…leAreasInProtocol (#14205)

adds the moveToAddressableAreaForDropTip command to the getAddressableAreasInProtocol helper that
provides a list of addressable area names referenced in a protocol's commands
  • Loading branch information
brenthagen authored Dec 14, 2023
1 parent 42efa31 commit 4ab142a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shared-data/js/helpers/getAddressableAreasInProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ export function getAddressableAreasInProtocol(
...acc,
command.params.addressableAreaName as AddressableAreaName,
]
} else if (
command.commandType === 'moveToAddressableAreaForDropTip' &&
!acc.includes(command.params.addressableAreaName as AddressableAreaName)
) {
return [
...acc,
command.params.addressableAreaName as AddressableAreaName,
]
} else {
return acc
}
Expand Down

0 comments on commit 4ab142a

Please sign in to comment.