allow currentVersion to be empty

This commit is contained in:
Jakob Schrettenbrunner 2020-04-13 20:02:47 +02:00
parent 6199ee413b
commit 681eb898b9

View File

@ -81,6 +81,6 @@ function getSelectedVersion(item) {
? pathVersion
: item.currentVersion;
}
return item.currentVersion;
return item.currentVersion || item.versions[0].name;
}
</script>