Skip to content

Commit

Permalink
fix: Fix crash in buildDeploymentProjectChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jun 9, 2023
1 parent 653cea0 commit bdf318a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/webui/ui/src/components/result-view/nodes/NodeBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export class NodeBuilder {
buildRoot(): [CommandResultNodeData, Map<string, NodeData>] {
const rootNode = new CommandResultNodeData(this.props, "root")

this.buildDeploymentProjectChildren(rootNode, this.props.commandResult.deployment!)
if (this.props.commandResult.deployment) {
this.buildDeploymentProjectChildren(rootNode, this.props.commandResult.deployment)
}

if (this.deletedObjectsMap.size) {
this.buildDeletedOrOrphanNode(rootNode, true, Array.from(this.deletedObjectsMap.values()))
Expand Down

0 comments on commit bdf318a

Please sign in to comment.