Linking edge case

master
William Toohey 10 years ago
parent 22360501d8
commit 301662a0f1
  1. 3
      src/js/HuesEditor.js

@ -712,7 +712,8 @@ HuesEditor.prototype.uiCreateEditArea = function() {
// CHAIN-BROKEN, use  for CHAIN // CHAIN-BROKEN, use  for CHAIN
let locker = this.createButton("", this.timeLock); let locker = this.createButton("", this.timeLock);
locker.addEventListener("click", () => { locker.addEventListener("click", () => {
if(!this.song) { // Only allow if both song bits exist
if(!this.song || !this.song.buildup || !this.song.sound) {
return; return;
} }
this.setIndependentBuild(!this.song.independentBuild); this.setIndependentBuild(!this.song.independentBuild);

Loading…
Cancel
Save