diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-12-01 18:39:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 18:39:09 -0800 |
commit | a2481f731707a564b8cd1b7d4a5c8815a71b3459 (patch) | |
tree | 5f34c56957b315357a0450a62f42caf34329604e | |
parent | a2e28229a90d3f1adb10cc256cc14b4d48d50c42 (diff) | |
parent | e1ecf86ffd4fdca587fd831eef7bc9f9cf1548ce (diff) | |
download | homer-a2481f731707a564b8cd1b7d4a5c8815a71b3459.tar.gz homer-a2481f731707a564b8cd1b7d4a5c8815a71b3459.tar.zst homer-a2481f731707a564b8cd1b7d4a5c8815a71b3459.zip |
Merge pull request #164 from jo-me/fix-search-result-key
Fix item key for horizontal layout
-rw-r--r-- | src/App.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/App.vue b/src/App.vue index d97df0c..31e49f7 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -65,8 +65,8 @@ | |||
65 | {{ group.name }} | 65 | {{ group.name }} |
66 | </h2> | 66 | </h2> |
67 | <Service | 67 | <Service |
68 | v-for="item in group.items" | 68 | v-for="(item, index) in group.items" |
69 | :key="item.name" | 69 | :key="index" |
70 | v-bind:item="item" | 70 | v-bind:item="item" |
71 | :class="['column', `is-${12 / config.columns}`]" | 71 | :class="['column', `is-${12 / config.columns}`]" |
72 | /> | 72 | /> |
@@ -88,9 +88,9 @@ | |||
88 | {{ group.name }} | 88 | {{ group.name }} |
89 | </h2> | 89 | </h2> |
90 | <Service | 90 | <Service |
91 | v-for="item in group.items" | 91 | v-for="(item, index) in group.items" |
92 | :key="index" | ||
92 | v-bind:item="item" | 93 | v-bind:item="item" |
93 | :key="item.url" | ||
94 | /> | 94 | /> |
95 | </div> | 95 | </div> |
96 | </div> | 96 | </div> |