Skip to content

Commit 17cfae8

Browse files
authored
Hide href attribute of a tag if there is no target_url (#34556)
Relate #34450
1 parent 1610a63 commit 17cfae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export default defineComponent({
429429
<svg-icon name="octicon-archive" :size="16"/>
430430
</div>
431431
</a>
432-
<a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state">
432+
<a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link || null" :data-tooltip-content="repo.locale_latest_commit_status_state">
433433
<!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl -->
434434
<svg-icon :name="statusIcon(repo.latest_commit_status_state)" :class="'tw-ml-2 commit-status icon text ' + statusColor(repo.latest_commit_status_state)" :size="16"/>
435435
</a>

0 commit comments

Comments
 (0)