Skip to content

Commit cd53bd5

Browse files
committed
Hide href attribute of a tag if there is no target_url
1 parent b0936f4 commit cd53bd5

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
@@ -426,7 +426,7 @@ export default defineComponent({
426426
<svg-icon name="octicon-archive" :size="16"/>
427427
</div>
428428
</a>
429-
<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">
429+
<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">
430430
<!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl -->
431431
<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"/>
432432
</a>

0 commit comments

Comments
 (0)