clearDataList()

in src/connectors/sheets-connector.js [355:369]


  clearDataList(tabId) {
    let tabConfig = this.tabs[tabId];
    let sheet = this.getSheet(tabId);
    let lastRow = sheet.getLastRow();

    if (lastRow > tabConfig.skipRows) {
      sheet.deleteRows(tabConfig.skipRows + 1, lastRow - tabConfig.skipRows);
      sheet.insertRowAfter(tabConfig.skipRows);

      // Reset the format of the last row.
      sheet.setRowHeight(tabConfig.skipRows + 1, 24 /* Pixels */);
      let lastRowRange = this.getRowRange(tabId, tabConfig.skipRows + 1);
      lastRowRange.clear();
    }
  }