Skip to content

Commit c2bb266

Browse files
minor refactor
1 parent 8513144 commit c2bb266

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/app/details/appDetails/SourceInfo.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export function SourceInfo({
6666

6767
const getScannedStatus = async () => {
6868
const { appId, ciArtifactId } = appDetails
69-
if (!appId) return
70-
7169
try {
7270
const {
7371
result: { scanEnabled, scanned },
@@ -85,10 +83,10 @@ export function SourceInfo({
8583
}
8684

8785
useEffect(() => {
88-
if (appDetails?.ciArtifactId) {
86+
if (appDetails?.ciArtifactId && appDetails?.appId) {
8987
getScannedStatus()
9088
}
91-
}, [appDetails?.ciArtifactId])
89+
}, [appDetails?.ciArtifactId, appDetails?.appId])
9290

9391
const onClickShowCommitInfo = (): void => {
9492
showCommitInfo(true)

0 commit comments

Comments
 (0)