From a8db3a02693e14dccd98f401e5ae78f6e5822b57 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 3 Dec 2019 16:47:20 +0100 Subject: Fix keys of RankingList story --- components/Ranking/RankingList.stories.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'components/Ranking') diff --git a/components/Ranking/RankingList.stories.js b/components/Ranking/RankingList.stories.js index c7b287d..830dd6a 100644 --- a/components/Ranking/RankingList.stories.js +++ b/components/Ranking/RankingList.stories.js @@ -6,7 +6,10 @@ import RankingList from './RankingList' import { rankingEntry } from './RankingEntry.stories' const rankingList = { - scores: Array(3).fill(rankingEntry) + scores: Array.from(Array(3).keys()).map(i => ({ + ...rankingEntry, + troop: `Troop${i}` + })) } storiesOf('Ranking/RankingList', module) @@ -15,6 +18,9 @@ storiesOf('Ranking/RankingList', module) return { components: { RankingList }, template: ``, - data: () => rankingList + data: () => { + console.log(rankingList) + return rankingList + } } }) -- cgit 1.4.1