Skip to content

Commit 9398f37

Browse files
authored
[excel] (Samples) Fix type mismatch in record daily changes sample (#710)
* Update issue templates * Add template for page controls * Update docfx to point at new template * Fix type mismatch in record daily changes sample * Remove extra comma * Remove accidental files
1 parent f9c1d14 commit 9398f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/resources/samples/report-day-to-day-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ function main(workbook: ExcelScript.Workbook, newData: string): string {
3333
// Add a row with the date, new value, and a formula calculating the difference.
3434
const currentDate = new Date(Date.now()).toLocaleDateString();
3535
const newRow = [currentDate, newData, "=[@Reading]-OFFSET([@Reading],-1,0)"];
36-
table.addRow(-1, newRow,);
36+
table.addRow(-1, newRow);
3737

3838
// Return the difference between the newData and the previous entry.
3939
const difference = Number.parseFloat(newData) - previousValue;
4040
console.log(difference);
41-
return difference;
41+
return difference.toString();
4242
}
4343
```
4444

0 commit comments

Comments
 (0)