Skip to content

Commit b2d3a3c

Browse files
committed
toList
1 parent e903261 commit b2d3a3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/web_app/lib/src/widget/downloads_chart/computations.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Iterable<String> prepareRanges(List<VersionRangeCount> rangeDownloads) {
1313
///
1414
/// The 'i'th entry in the iterable is a list of the download values
1515
/// (y coordinates) for the 'i'th week (x coordinate).
16-
Iterable<List<int>> prepareWeekLists(
16+
List<List<int>> prepareWeekLists(
1717
List<int> totals,
1818
List<VersionRangeCount> rangeDownloads,
1919
int displayLength,
@@ -32,5 +32,5 @@ Iterable<List<int>> prepareWeekLists(
3232
rangeDownloads.forEach((d) => weekList.add(d.counts[week]));
3333
result.add(weekList);
3434
}
35-
return result.reversed;
35+
return result.reversed.toList();
3636
}

pkg/web_app/lib/src/widget/downloads_chart/widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ void create(HTMLElement element, Map<String, String> options) {
3535
}
3636

3737
void drawChart(Element svg, Iterable<String> ranges, Iterable<List<int>> values,
38-
DateTime newestData,
38+
DateTime newestDate,
3939
{bool stacked = true}) {}

0 commit comments

Comments
 (0)