We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8513144 commit c2bb266Copy full SHA for c2bb266
src/components/app/details/appDetails/SourceInfo.tsx
@@ -66,8 +66,6 @@ export function SourceInfo({
66
67
const getScannedStatus = async () => {
68
const { appId, ciArtifactId } = appDetails
69
- if (!appId) return
70
-
71
try {
72
const {
73
result: { scanEnabled, scanned },
@@ -85,10 +83,10 @@ export function SourceInfo({
85
83
}
86
84
87
useEffect(() => {
88
- if (appDetails?.ciArtifactId) {
+ if (appDetails?.ciArtifactId && appDetails?.appId) {
89
getScannedStatus()
90
91
- }, [appDetails?.ciArtifactId])
+ }, [appDetails?.ciArtifactId, appDetails?.appId])
92
93
const onClickShowCommitInfo = (): void => {
94
showCommitInfo(true)
0 commit comments