This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 727d2a99 fix: add optional chain check for null name (#3666)
727d2a99 is described below
commit 727d2a996b3d0260a570f3c116239261587a3724
Author: Julien Chinapen <[email protected]>
AuthorDate: Thu Nov 3 11:00:08 2022 -0400
fix: add optional chain check for null name (#3666)
---
config-ui/src/models/GithubProject.js | 2 +-
config-ui/src/models/JenkinsJob.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/models/GithubProject.js
b/config-ui/src/models/GithubProject.js
index bce54912..5f8b2794 100644
--- a/config-ui/src/models/GithubProject.js
+++ b/config-ui/src/models/GithubProject.js
@@ -61,7 +61,7 @@ class GitHubProject {
}
getConfiguredEntityId() {
- return this.name.toString() || this.id
+ return this.name?.toString() || this.id
}
getTransformationScopeOptions() {
diff --git a/config-ui/src/models/JenkinsJob.js
b/config-ui/src/models/JenkinsJob.js
index f2bc3ade..88dacec8 100644
--- a/config-ui/src/models/JenkinsJob.js
+++ b/config-ui/src/models/JenkinsJob.js
@@ -51,7 +51,7 @@ class JenkinsJob {
}
getConfiguredEntityId() {
- return this.name.toString() || this.id
+ return this.name?.toString() || this.id
}
getTransformationScopeOptions() {