Skip to content

Commit

Permalink
Update templates.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 29, 2024
1 parent 9e2af88 commit ff813be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion war/src/main/js/components/dropdowns/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function menuItem(options) {
const tag = itemOptions.type === "link" ? "a" : "button";

const item = createElementFromHtml(`
<${tag} class="jenkins-dropdown__item ${itemOptions.clazz ? itemOptions.clazz : ""}" href="${itemOptions.url}" ${itemOptions.id ? `id="${itemOptions.id}` : ""}">
<${tag} class="jenkins-dropdown__item ${itemOptions.clazz || ""}" ${itemOptions.url ? `href="${itemOptions.url}` : ""} ${itemOptions.id ? `id="${itemOptions.id}` : ""}>
${
itemOptions.icon
? `<div class="jenkins-dropdown__item__icon">${
Expand Down

0 comments on commit ff813be

Please sign in to comment.