Skip to content

Commit 2f21a95

Browse files
committed
Check fix for artifact
1 parent 751b693 commit 2f21a95

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.2.17-patch-1",
3+
"version": "0.2.17-patch-2",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/CICDHistory/Artifacts.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,11 @@ const Artifacts = ({
179179
</div>
180180
)
181181
}
182-
if (status.toLowerCase() === TERMINAL_STATUS_MAP.FAILED || status.toLowerCase() === TERMINAL_STATUS_MAP.CANCELLED) {
182+
if (
183+
status.toLowerCase() === TERMINAL_STATUS_MAP.FAILED ||
184+
status.toLowerCase() === TERMINAL_STATUS_MAP.CANCELLED ||
185+
status.toLowerCase() === TERMINAL_STATUS_MAP.ERROR
186+
) {
183187
if (isJobCI) {
184188
return (
185189
<GenericEmptyState
@@ -196,14 +200,6 @@ const Artifacts = ({
196200
/>
197201
)
198202
}
199-
if (status.toLowerCase() === TERMINAL_STATUS_MAP.ERROR) {
200-
return (
201-
<GenericEmptyState
202-
title={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError}
203-
subTitle={EMPTY_STATE_STATUS.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError}
204-
/>
205-
)
206-
}
207203
if (!artifactId && status.toLowerCase() === TERMINAL_STATUS_MAP.SUCCEEDED && !isJobView) {
208204
return (
209205
<GenericEmptyState

0 commit comments

Comments
 (0)