Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-25 00:10:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-25 00:10:17 +0300
commitba0d8b409534f02c23bf2447fd32246926ba4392 (patch)
tree722b4f0f7be05189bfa5a0d06b20383b4680b5a1 /app/assets/javascripts/batch_comments
parentfd247970cfe1e98276c780fbdcca026b7960e42a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/batch_comments')
-rw-r--r--app/assets/javascripts/batch_comments/components/preview_dropdown.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/batch_comments/components/preview_dropdown.vue b/app/assets/javascripts/batch_comments/components/preview_dropdown.vue
index 1b354940a37..4ac0c8c4894 100644
--- a/app/assets/javascripts/batch_comments/components/preview_dropdown.vue
+++ b/app/assets/javascripts/batch_comments/components/preview_dropdown.vue
@@ -18,12 +18,13 @@ export default {
...mapGetters('batchComments', ['draftsCount', 'sortedDrafts']),
...mapGetters(['getNoteableData']),
listItems() {
+ const sortedDraftCount = this.sortedDrafts.length - 1;
return this.sortedDrafts.map((item, index) => ({
text: item.id.toString(),
action: () => {
this.onClickDraft(item);
},
- last: index === this.sortedDrafts.length - 1,
+ last: index === sortedDraftCount,
...item,
}));
},