Skip to content

Commit 2d39afe

Browse files
committed
fix: make errors property optional in AppListItem component and update TeamListItem usage in stories
1 parent 4aecdd1 commit 2d39afe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/components/list/AppListItem.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
team: { slug: string };
2020
status: {
2121
state: string;
22-
errors: {
22+
errors?: {
2323
__typename: string | null;
2424
level: 'ERROR' | 'WARNING' | 'TODO';
2525
}[];

src/lib/components/list/List.stories.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@
292292

293293
<Story name="Teams">
294294
<List>
295-
{#each teams as team, i (team.slug)}
296-
<TeamListItem {team} errors={i} />
295+
{#each teams as team (team.slug)}
296+
<TeamListItem {team} />
297297
{/each}
298298
</List>
299299
</Story>

0 commit comments

Comments
 (0)