Skip to content

Commit

Permalink
NVSHAS-9657: Version value shows with double quotations in manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xingzhang-suse authored and BinX-Suse committed Nov 15, 2024
1 parent 911493e commit 83d7d01
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ export class GlobalNotificationsComponent implements OnInit {
.getVersion()
.pipe(
map(version => {
if (version && version[0] === 'v') {
return version.substring(1);
let _version = version.replace(/^\"|\"$/g, "");
if (_version && _version[0] === 'v') {
return _version.substring(1);
}
return version;
return _version;
})
)
.subscribe({
Expand Down

0 comments on commit 83d7d01

Please sign in to comment.