Skip to content

Commit

Permalink
Verify installation for inspection table
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Jul 18, 2024
1 parent 8a80fed commit f3aa7e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export const InspectionSection = () => {

const deckMissions: DeckInspectionTuple[] =
decks?.map(({ areas, deck }) => {
const missionDefinitionsInDeck = missionDefinitions.filter((m) => m.area?.deckName === deck.deckName)
const missionDefinitionsInDeck = missionDefinitions.filter(
(m) => m.area?.deckName === deck.deckName && m.installationCode === installationCode
)
return {
inspections: missionDefinitionsInDeck.map((m) => {
return {
Expand Down

0 comments on commit f3aa7e6

Please sign in to comment.