From 557c581726a0ef8db963c9d707a3ed3572c574ac Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Mon, 23 Oct 2017 03:20:45 -0500 Subject: [PATCH] Prevent empty version payloads from breaking frontend --- assets/js/site.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/site.js b/assets/js/site.js index d8dbc88..6e43228 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -22,6 +22,7 @@ function updateServerStatus(lastEntry) { var versions = ''; for (var i = 0; i < lastEntry.versions.length; i++) { + if (!lastEntry.versions[i]) continue; versions += '' + publicConfig.minecraftVersions[lastEntry.info.type][lastEntry.versions[i]] + ' '; }