Skip to content

Commit 2f06fec

Browse files
committed
chore: use nullish operator
1 parent 32225c0 commit 2f06fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ApplicationGroup/Details/TriggerView/EnvTriggerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
14581458
_selectedNode = _cdNode.postNode
14591459
}
14601460

1461-
const selectedArtifacts = _selectedNode?.[materialType]?.filter((artifact) => artifact.isSelected) || []
1461+
const selectedArtifacts = _selectedNode?.[materialType]?.filter((artifact) => artifact.isSelected) ?? []
14621462
if (_selectedNode && selectedArtifacts.length > 0) {
14631463
return { node: _selectedNode, wf }
14641464
}

0 commit comments

Comments
 (0)