Skip to content

Commit

Permalink
fix: ciPipelineid in imagetagscontainer default to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekA1509 committed Nov 1, 2023
1 parent 310fb86 commit 5a5c24c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "0.0.34-beta-4",
"version": "0.0.34-beta-5",
"description": "Supporting common component library",
"main": "dist/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/Common/ImageTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Tippy from '@tippyjs/react'
import { Progressing } from './Progressing'

export const ImageTagsContainer = ({
// Setting it to zero in case of external pipeline
ciPipelineId,
artifactId,
imageComment,
Expand Down Expand Up @@ -229,7 +230,7 @@ export const ImageTagsContainer = ({

// set loading state true
setLoading(true)
setImageTags(payload, ciPipelineId, artifactId)
setImageTags(payload, ciPipelineId ?? 0, artifactId)
.then((res) => {
const tags = res.result?.imageReleaseTags?.map((tag) => ({
id: tag.id,
Expand Down

0 comments on commit 5a5c24c

Please sign in to comment.