diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-03 16:47:20 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-12-03 16:47:20 +0100 |
commit | a8db3a02693e14dccd98f401e5ae78f6e5822b57 (patch) | |
tree | a984547e7364f21160437314b9f3aa98a0ff322d /components/Ranking/RankingList.stories.js | |
parent | 34da06762e81f85c5df29fdec66e2055b8b930a9 (diff) | |
download | puszcza-a8db3a02693e14dccd98f401e5ae78f6e5822b57.tar.gz puszcza-a8db3a02693e14dccd98f401e5ae78f6e5822b57.zip |
Fix keys of RankingList story
Diffstat (limited to 'components/Ranking/RankingList.stories.js')
-rw-r--r-- | components/Ranking/RankingList.stories.js | 10 |
1 files changed, 8 insertions, 2 deletions
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: `<ranking-list :scores="scores" />`, - data: () => rankingList + data: () => { + console.log(rankingList) + return rankingList + } } }) |