Skip to content

Commit

Permalink
flowlist: fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Dec 2, 2024
1 parent d298079 commit 7f35f27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/static/js/flowlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class FlowList {
badge.textContent = text
if (count !== undefined) {
const badgeCount = document.createElement('span')
badgeCount.classList.add(`text-bg-dark`, 'bg-opacity-75', 'rounded', 'me-1', 'px-1')
badgeCount.classList.add('text-bg-dark', 'bg-opacity-75', 'rounded', 'me-1', 'px-1')
badgeCount.textContent = count
badge.prepend(badgeCount)
}
Expand Down Expand Up @@ -410,8 +410,8 @@ class FlowList {
tags.forEach(t => {
const { tag, color } = t
if (flowTags?.includes(tag)) {
const tag_id = 'tag_' + tag.replace(/[^A-Za-z0-9]/g, '_')
const badge = this.tagBadge(tag, color, flow.flowints?.[tag_id])
const tagId = 'tag_' + tag.replace(/[^A-Za-z0-9]/g, '_')
const badge = this.tagBadge(tag, color, flow.flowints?.[tagId])
flowEl.appendChild(badge)
}
})
Expand Down

0 comments on commit 7f35f27

Please sign in to comment.