Skip to content

Commit

Permalink
Merge pull request #34 from yukiarrr/fix-init-of-target-values
Browse files Browse the repository at this point in the history
Fix initialization of targetValues
  • Loading branch information
yukiarrr authored Sep 6, 2020
2 parents a94d2b1 + 18b2c96 commit 718c550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gas/apply.gs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ function mergeSheets(
targetSheet = spreadsheet.insertSheet(targetSheetName);
}

let targetValues = notUpdateSheet
? [[]]
: targetSheet.getDataRange().getDisplayValues();
let targetValues = targetSheet
? targetSheet.getDataRange().getDisplayValues()
: [[]];

if (mergeSheetNames.length === 0) {
// Target sheet only
Expand Down

0 comments on commit 718c550

Please sign in to comment.