title: Google sheets button with "assigned script" disappears
body: <p>I have a spreadsheet with several scripts attached to images as buttons being used by lots of people. The weird thing is, there's a set of three buttons in each workbook, and one of them (the same one each time) always "loses" the assigned script and just becomes an image again.</p>
  
  <p>I've been unable to figure out what causes the script to become "unattached" from the image. I can't share the specific sheet here since it has sensitive info, but I could mock a similar one up if it's helpful. Mostly wondering if anyone knows what causes scripts to dissociate from buttons. My only theory is that script triggers might cause it, so I just turned triggers off and we'll see how that goes the next few days.</p>
  
  <p>Thanks and apologies for vague question!</p>
  
  <pre><code>function tabs() {
    var s = SpreadsheetApp.getActive(),
        t = s.getSheetByName('Tabs'),
        n = s.getSheets()
        .map(function(s, i) {
          return [s.getName()]
        });
    t.getRange('A1:A').clear();
    t.getRange(1, 1, n.length, 1).setValues(n)
  }
  </code></pre>