From 2d07a1c8d2d6b526bc171241061706d402ddc4d1 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Mon, 25 Jul 2022 16:47:11 +0800 Subject: [PATCH] show correct version when it's inherited from parent (#851) Signed-off-by: Yan Zhang --- src/explorer/model/MavenProject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/explorer/model/MavenProject.ts b/src/explorer/model/MavenProject.ts index d13c06cd..26ce866c 100644 --- a/src/explorer/model/MavenProject.ts +++ b/src/explorer/model/MavenProject.ts @@ -64,7 +64,7 @@ export class MavenProject implements ITreeItem { } public get version(): string { - return this._pom?.project?.version?.[0]; + return this._pom?.project?.version?.[0] ?? this._pom?.project?.parent?.[0]?.version?.[0] ?? this.parent?.version; } public get id(): string {