mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:07:08 +00:00
Do not error if version history is undefined
This commit is contained in:
@@ -139,7 +139,7 @@ export default {
|
||||
}
|
||||
if (!this.versionHistory) {
|
||||
const history = await this.api(['/version/history?count=1', {}, null, {silent:true}]);
|
||||
this.versionHistory = history[this.serverVersion.replace(/-.*$/, "")] ?? null;
|
||||
this.versionHistory = history?.[this.serverVersion.replace(/-.*$/, "")] ?? null;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user