Skip to content

Commit

Permalink
411709: Add some guarding
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmypixel committed Jan 10, 2025
1 parent 5cb6ede commit 76ba340
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server/services/list/helpers/build-services-table-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ async function buildServicesTableData({

const { repositories } = repositoriesResponse
const decorator = repositoriesDecorator(repositories)
const deployableServicesWithRepository = deployableServices.map(decorator)
const inProgressServicesWithRepository = inProgressServices.map(decorator)
const deployableServicesWithRepository =
deployableServices?.map(decorator) ?? []
const inProgressServicesWithRepository =
inProgressServices?.map(decorator) ?? []

// Services from Self Service Ops /status/in-progress overwrite services from Portal Backends /services
const services = unionBy(
Expand Down

0 comments on commit 76ba340

Please sign in to comment.