Prevent empty version payloads from breaking frontend
This commit is contained in:
parent
a90d6faf45
commit
557c581726
@ -22,6 +22,7 @@ function updateServerStatus(lastEntry) {
|
||||
var versions = '';
|
||||
|
||||
for (var i = 0; i < lastEntry.versions.length; i++) {
|
||||
if (!lastEntry.versions[i]) continue;
|
||||
versions += '<span class="version">' + publicConfig.minecraftVersions[lastEntry.info.type][lastEntry.versions[i]] + '</span> ';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user