Skip to content

Commit 205f584

Browse files
committed
chore: remove redundant null check
1 parent 444226c commit 205f584

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
@@ -1453,7 +1453,7 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
14531453
const _selectedNode: CommonNodeAttr | undefined = getSelectedCDNode(bulkTriggerType, _cdNode)
14541454

14551455
const selectedArtifacts = _selectedNode?.[materialType]?.filter((artifact) => artifact.isSelected) ?? []
1456-
if (selectedArtifacts?.length > 0) {
1456+
if (selectedArtifacts.length > 0) {
14571457
return { node: _selectedNode, wf }
14581458
}
14591459
return null

0 commit comments

Comments
 (0)