Skip to content

Commit

Permalink
fix: undefined if deployed from branch and no config exist on main
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Apr 2, 2024
1 parent 68ab025 commit ed0d36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/dashboard/src/components/deployStatus/deployStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function DeployStatusModal(props) {
const key = runningDeploy.trackingId

let stack = connectedAgents[env].stacks.find(s => s.service.name === app)
const config = envConfigs[env].find((config) => config.app === app)
const config = envConfigs[env]?.find((config) => config.app === app)

if (!stack) { // for apps we haven't deployed yet
stack={service:{name: app}}
Expand Down

0 comments on commit ed0d36f

Please sign in to comment.