Skip to content

Commit db88763

Browse files
committed
fix(account menu): avoid having duplicate IDs for account menu entries without href links
When the account menu entry doesn't have an href property (for instance the entry added by First Run Wizard), the ID is duplicated between the list item and the <a> tag it contains Signed-off-by: Thomas Citharel <[email protected]>
1 parent 1f4117a commit db88763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/AccountMenu/AccountMenuEntry.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55

66
<template>
7-
<NcListItem :id="href ? undefined : id"
7+
<NcListItem :id="href ? undefined : `${id}-account-menu-entry`"
88
:anchor-id="id"
99
:active="active"
1010
class="account-menu-entry"

0 commit comments

Comments
 (0)