- Fixed a minor issue with rest api version

This commit is contained in:
Ferdi Koomen 2021-10-28 22:39:01 +02:00
parent 4a967af3ac
commit 83a2370d3c
2 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,5 @@
* @param version
*/
export function getServiceVersion(version = '1.0'): string {
return version.replace(/^v/gi, '');
return String(version).replace(/^v/gi, '');
}

View File

@ -4,5 +4,5 @@
* @param version
*/
export function getServiceVersion(version = '1.0'): string {
return version.replace(/^v/gi, '');
return String(version).replace(/^v/gi, '');
}