Skip to content

Commit 70f9500

Browse files
authored
Nit - show sheet if created from template
In shared copy as template sheet is hidden, when new sheets are created this makes sure they aren't hidden
1 parent 241038d commit 70f9500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-apps-script/core-vitals/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const fetchPage = (url, strategy) => {
7676

7777
const writeDataToSheet = (name, data) => {
7878
const ss = SpreadsheetApp.getActiveSpreadsheet();
79-
const sheet = ss.getSheetByName(name) || ss.insertSheet(name, 1, { template: ss.getSheetByName('template') });
79+
const sheet = ss.getSheetByName(name) || ss.insertSheet(name, 1, { template: ss.getSheetByName('template') }).showSheet();
8080
const vitals = sheet
8181
.getRange(2, 1, sheet.getLastRow() - 1, 1)
8282
.getValues()

0 commit comments

Comments
 (0)