mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-01 00:20:33 +03:00
Fix version render issue
This commit is contained in:
parent
30bcad450f
commit
9f83c1c3ad
|
@ -19,7 +19,7 @@ export class ApiInfo extends BaseComponent implements OnInit {
|
||||||
init() {
|
init() {
|
||||||
this.info = this.componentSchema.info;
|
this.info = this.componentSchema.info;
|
||||||
this.specUrl = this.optionsService.options.specUrl;
|
this.specUrl = this.optionsService.options.specUrl;
|
||||||
if (parseInt(this.info.version.substring(0, 1)) !== NaN) {
|
if (!isNaN(parseInt(this.info.version.substring(0, 1)))) {
|
||||||
this.info.version = 'v' + this.info.version;
|
this.info.version = 'v' + this.info.version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user