Skip to content

Commit

Permalink
merged latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Shafeeq PP authored and Shafeeq PP committed Sep 20, 2023
2 parents c5a1b15 + 7488c0a commit 813b596
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/contentstack-branches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-branches/1.0.12 darwin-arm64 node-v18.11.0
@contentstack/cli-cm-branches/1.0.13 darwin-arm64 node-v18.11.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-branches",
"description": "Contentstack CLI plugin to do branches operations",
"version": "1.0.12",
"version": "1.0.13",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ export function entryCreateScript(contentType) {
.query({ query: { title: compareRefEntry.title } })
.find();
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@ export function entryCreateUpdateScript(contentType) {
.query({ query: { title: compareRefEntry.title } })
.find();
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ export function entryUpdateScript(contentType) {
.query({ query: { title: compareRefEntry.title } })
.find();
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
if(baseRefEntry?.items?.length > 0 && baseRefEntry.items[0]?.uid){
updateValueByPath(entryDetails, references[i], baseRefEntry.items[0].uid);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@contentstack/cli-migration": "~1.3.12",
"@contentstack/cli-utilities": "~1.5.2",
"@contentstack/management": "~1.10.0",
"@contentstack/cli-cm-branches": "~1.0.12",
"@contentstack/cli-cm-branches": "~1.0.13",
"@oclif/plugin-help": "^5",
"@oclif/plugin-not-found": "^2.4.0",
"@oclif/plugin-plugins": "^3.3.2",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 813b596

Please sign in to comment.