@devtron-labs/devtron-fe-common-lib 0.0.34-beta-4 → 0.0.34-beta-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23235,7 +23235,9 @@ var SvgIcEnter = function SvgIcEnter(props) {
23235
23235
  };
23236
23236
 
23237
23237
  var ImageTagsContainer = function (_a) {
23238
- var ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, updateCurrentAppMaterial = _a.updateCurrentAppMaterial, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode, hideHardDelete = _a.hideHardDelete, forceReInit = _a.forceReInit;
23238
+ var
23239
+ // Setting it to zero in case of external pipeline
23240
+ ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, updateCurrentAppMaterial = _a.updateCurrentAppMaterial, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode, hideHardDelete = _a.hideHardDelete, forceReInit = _a.forceReInit;
23239
23241
  var _b = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), initialTags = _b[0], setInitialTags = _b[1];
23240
23242
  var _c = __read(React.useState(imageComment ? imageComment.comment : ''), 2), initialDescription = _c[0], setInitialDescription = _c[1];
23241
23243
  var _d = __read(React.useState(appReleaseTagNames ? appReleaseTagNames : []), 2), existingTags = _d[0], setExistingTags = _d[1];
@@ -23425,7 +23427,7 @@ var ImageTagsContainer = function (_a) {
23425
23427
  };
23426
23428
  // set loading state true
23427
23429
  setLoading(true);
23428
- setImageTags(payload, ciPipelineId, artifactId)
23430
+ setImageTags(payload, ciPipelineId !== null && ciPipelineId !== void 0 ? ciPipelineId : 0, artifactId)
23429
23431
  .then(function (res) {
23430
23432
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
23431
23433
  var tags = (_b = (_a = res.result) === null || _a === void 0 ? void 0 : _a.imageReleaseTags) === null || _b === void 0 ? void 0 : _b.map(function (tag) { return ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.34-beta-4",
3
+ "version": "0.0.34-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -21,6 +21,7 @@ import Tippy from '@tippyjs/react'
21
21
  import { Progressing } from './Progressing'
22
22
 
23
23
  export const ImageTagsContainer = ({
24
+ // Setting it to zero in case of external pipeline
24
25
  ciPipelineId,
25
26
  artifactId,
26
27
  imageComment,
@@ -229,7 +230,7 @@ export const ImageTagsContainer = ({
229
230
 
230
231
  // set loading state true
231
232
  setLoading(true)
232
- setImageTags(payload, ciPipelineId, artifactId)
233
+ setImageTags(payload, ciPipelineId ?? 0, artifactId)
233
234
  .then((res) => {
234
235
  const tags = res.result?.imageReleaseTags?.map((tag) => ({
235
236
  id: tag.id,