null test in more natural way
Signed-off-by: GregoireW <24318548+GregoireW@users.noreply.github.com>
This commit is contained in:
@@ -168,10 +168,9 @@ export class JenkinsApiImpl {
|
||||
|
||||
return {
|
||||
...project,
|
||||
lastBuild:
|
||||
project.lastBuild === null
|
||||
? null
|
||||
: this.augmentBuild(project.lastBuild, jobScmInfo),
|
||||
lastBuild: project.lastBuild
|
||||
? this.augmentBuild(project.lastBuild, jobScmInfo)
|
||||
: null,
|
||||
status,
|
||||
// actions: undefined,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user