Skip to content

Commit 506dc6f

Browse files
Fix test file download link (#3726)
Fixes an issue introduced in #3662 which broke test file download links.
1 parent 6fe84d8 commit 506dc6f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

resources/js/vue/components/TestDetailsPage.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,17 @@
114114
{{ measurement.value }}
115115
</td>
116116
</tr>
117-
<tr v-for="file in files">
117+
<tr
118+
v-for="(file, index) in files"
119+
:key="index"
120+
>
118121
<th class="measurement">
119122
{{ file.name }}
120123
</th>
121124
<td>
122125
<a
123126
class="cdash-link"
124-
:href="$baseURL + '/api/v1/testDetails.php?buildtestid=' + testId + '&fileid=' + file.fileid"
127+
:href="$baseURL + '/api/v1/testDetails.php?buildtestid=' + testId + '&fileid=' + (index + 1)"
125128
>
126129
<img :src="$baseURL + '/img/package.png'">
127130
</a>

0 commit comments

Comments
 (0)