Prevent empty version payloads from breaking frontend

This commit is contained in:
Cryptkeeper 2017-10-23 03:20:45 -05:00
parent a90d6faf45
commit 557c581726

@ -22,6 +22,7 @@ function updateServerStatus(lastEntry) {
var versions = ''; var versions = '';
for (var i = 0; i < lastEntry.versions.length; i++) { 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>&nbsp;'; versions += '<span class="version">' + publicConfig.minecraftVersions[lastEntry.info.type][lastEntry.versions[i]] + '</span>&nbsp;';
} }