Fix version render issue

This commit is contained in:
Roman Hotsiy 2016-08-30 20:16:06 +03:00
parent 30bcad450f
commit 9f83c1c3ad
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -19,7 +19,7 @@ export class ApiInfo extends BaseComponent implements OnInit {
init() {
this.info = this.componentSchema.info;
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;
}
}