Skip to content
Snippets Groups Projects
Commit 3a86cc69 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIXUP

parent b62f394a
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,14 @@ export default {
const api_versions_result = await WapiVersion.list(this.$store.state, {})
console.log('Versions', api_versions_result)
this.api_versions = api_versions_result.data[0]
let has_release = false
for (const vers of this.api_versions) {
if (vers.semantic === 'alpha') {
if (vers.semantic === 'release') {
has_release = true
}
}
for (const vers of this.api_versions) {
if (vers.semantic === 'alpha' && !has_release) {
vers.semantic = 'release'
}
SwaggerUI({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment