From 2342b66db050638f2ab8bcc00896efcc01ff3ae4 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 3 Nov 2019 05:59:36 -0800 Subject: [PATCH] thrimbletrimmer: Don't open advanced pane if upload_location is null --- thrimbletrimmer/scripts/IO.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index 6a462e7..07aea86 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -40,7 +40,11 @@ pageSetup = function(isEditor) { document.getElementById("AllowHoles").checked = data.allow_holes; document.getElementById("uploaderWhitelist").value = (!!data.uploader_whitelist) ? data.uploader_whitelist.join(",") : ""; if ( - (data.upload_locations.length > 0 && data.upload_location != data.upload_locations[0]) + ( + data.upload_locations.length > 0 + && data.upload_location != null + && data.upload_location != data.upload_locations[0] + ) || data.allow_holes || !!data.uploader_whitelist ) {