Skip to content

Commit 6ffd517

Browse files
committed
fix/ webhook generic header rendering conditionally
1 parent 6b5cc51 commit 6ffd517

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/app/details/triggerView/cdMaterial.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,6 @@ const CDMaterial = ({
11801180
<>
11811181
{materialData.materialInfo.map((mat: MaterialInfo, index) => {
11821182
const _gitCommit = getGitCommitInfo(mat)
1183-
11841183
if (
11851184
(materialData.appliedFilters?.length > 0 ||
11861185
materialData.deploymentBlockedState?.isBlocked ||
@@ -1208,7 +1207,7 @@ const CDMaterial = ({
12081207
<GitCommitInfoGeneric
12091208
index={index}
12101209
materialUrl={mat.url}
1211-
showMaterialInfoHeader
1210+
showMaterialInfoHeader={!!mat.url}
12121211
commitInfo={_gitCommit}
12131212
materialSourceType={mat.type}
12141213
selectedCommitInfo=""
@@ -1230,7 +1229,7 @@ const CDMaterial = ({
12301229
<GitCommitInfoGeneric
12311230
index={index}
12321231
materialUrl={mat.url}
1233-
showMaterialInfoHeader
1232+
showMaterialInfoHeader={!!mat.url}
12341233
commitInfo={_gitCommit}
12351234
materialSourceType={mat.type}
12361235
selectedCommitInfo=""

0 commit comments

Comments
 (0)