From 301662a0f14e97567008e62a90cfd7d663231533 Mon Sep 17 00:00:00 2001 From: William Toohey Date: Thu, 11 Feb 2016 22:40:36 +1000 Subject: [PATCH] Linking edge case --- src/js/HuesEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/HuesEditor.js b/src/js/HuesEditor.js index 9c37b88..8cf26f7 100644 --- a/src/js/HuesEditor.js +++ b/src/js/HuesEditor.js @@ -712,7 +712,8 @@ HuesEditor.prototype.uiCreateEditArea = function() { // CHAIN-BROKEN, use  for CHAIN let locker = this.createButton("", this.timeLock); locker.addEventListener("click", () => { - if(!this.song) { + // Only allow if both song bits exist + if(!this.song || !this.song.buildup || !this.song.sound) { return; } this.setIndependentBuild(!this.song.independentBuild);