mirror of https://github.com/rancher/dashboard.git
Bug fix for adding issue to the GH Project board (#10830)
This commit is contained in:
parent
1b1b2d233a
commit
9cc17f1338
|
|
@ -320,7 +320,7 @@ async function processOpenOrEditAction() {
|
||||||
console.log('---------');
|
console.log('---------');
|
||||||
|
|
||||||
// Is the issue on the board?
|
// Is the issue on the board?
|
||||||
if (!prjIssue[ghProject.id]) {
|
if (!prjIssue || !prjIssue[ghProject.id]) {
|
||||||
// Issue is not on the board
|
// Issue is not on the board
|
||||||
console.log(`Issue ${ i } is NOT on the project board - adding it ...`);
|
console.log(`Issue ${ i } is NOT on the project board - adding it ...`);
|
||||||
|
|
||||||
|
|
@ -328,7 +328,7 @@ async function processOpenOrEditAction() {
|
||||||
|
|
||||||
prjIssue = await request.ghProjectIssue(info.org, info.repo, i.number);
|
prjIssue = await request.ghProjectIssue(info.org, info.repo, i.number);
|
||||||
|
|
||||||
if (!prjIssue[ghProject.id]) {
|
if (!prjIssue || !prjIssue[ghProject.id]) {
|
||||||
console.log("Error: Could not add issue to Project Board");
|
console.log("Error: Could not add issue to Project Board");
|
||||||
console.log(prjIssue);
|
console.log(prjIssue);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue