Improved setLastVersion
This commit is contained in:
parent
b600797315
commit
fe3bc0274a
|
@ -343,8 +343,11 @@ helpers.formatVersion = function (version) {
|
||||||
helpers.setLastVersion = function (type, version) {
|
helpers.setLastVersion = function (type, version) {
|
||||||
|
|
||||||
let requestVersion;
|
let requestVersion;
|
||||||
if(version != null && version != undefined) {
|
|
||||||
|
if(version !== null && version !== undefined) {
|
||||||
requestVersion = version.toString();
|
requestVersion = version.toString();
|
||||||
|
} else if (version === null) {
|
||||||
|
return 'latest';
|
||||||
}
|
}
|
||||||
if (type.includes('/angularjs/1.')) {
|
if (type.includes('/angularjs/1.')) {
|
||||||
version = '1.7.9';
|
version = '1.7.9';
|
||||||
|
|
Loading…
Reference in New Issue