Commit 36b381b8 authored by Kushal Pandya's avatar Kushal Pandya

Generate unique key to prevent collision when same token is used twice

parent 3f7d2201
...@@ -123,9 +123,10 @@ export default { ...@@ -123,9 +123,10 @@ export default {
and cause odd behavior when one is removed. and cause odd behavior when one is removed.
--> -->
<li <li
:key="`${pendingReferences.length}-${reference}`"
v-for="(reference, index) in pendingReferences" v-for="(reference, index) in pendingReferences"
class="js-add-issuable-form-token-list-item add-issuable-form-token-list-item"> :key="`related-issues-token-${index}`"
class="js-add-issuable-form-token-list-item add-issuable-form-token-list-item"
>
<issue-token <issue-token
event-namespace="pendingIssuable" event-namespace="pendingIssuable"
:id-key="index" :id-key="index"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment