Skip to content

Commit

Permalink
Merge pull request #1090 from RoadieHQ/type-error
Browse files Browse the repository at this point in the history
fix Cannot read properties of undefined (reading 'status') error
  • Loading branch information
punkle authored Aug 28, 2023
2 parents 418e2f5 + a3399ac commit e00846d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quick-moles-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/scaffolder-backend-argocd': patch
---

Fix undefined error.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ const HistoryTable = ({

const history = data.items
? data.items
.filter(Boolean)
.map(app => {
if (typeof app.status.history !== 'undefined') {
if (app?.status?.history) {
return app.status.history.map(entry => {
return {
app: app.metadata.name,
Expand Down

0 comments on commit e00846d

Please sign in to comment.