Skip to content

Commit

Permalink
Constructor standings was missing the row_limit (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcokreeft87 authored Feb 1, 2023
1 parent ba56769 commit 5f5df02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions formulaone-card.js

Large diffs are not rendered by default.

Binary file modified formulaone-card.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formulaone-card",
"version": "0.8.1",
"version": "0.8.2",
"description": "Frontend card for Home Assistant to display Formula One data",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/cards/constructor-standings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html, HTMLTemplateResult } from "lit-html";
import { until } from 'lit-html/directives/until.js';
import FormulaOneCard from "..";
import { ConstructorStanding } from "../api/models";
import { getApiErrorMessage, getApiLoadingMessage, getTeamImageUrl } from "../utils";
import { getApiErrorMessage, getApiLoadingMessage, getTeamImageUrl, reduceArray } from "../utils";
import { BaseCard } from "./base-card";

export default class ConstructorStandings extends BaseCard {
Expand Down Expand Up @@ -45,7 +45,7 @@ export default class ConstructorStandings extends BaseCard {
</tr>
</thead>
<tbody>
${response.map(standing => this.renderStandingRow(standing))}
${reduceArray(response, this.config.row_limit).map(standing => this.renderStandingRow(standing))}
</tbody>
</table>
`
Expand Down

0 comments on commit 5f5df02

Please sign in to comment.