Skip to content

Commit 56db452

Browse files
authored
Correctly sort affected components (#34)
2 parents 4fe495c + 8321c39 commit 56db452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/pages/NoticePage.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export class NoticePage extends Page {
166166
<dt class="font-medium text-neutral-400">Affected services</dt>
167167
<dd>
168168
<ul class="flex gap-1 flex-wrap">
169-
${this.notice.components.map((c) =>
169+
${this.notice.components.sort((a, b) => a.order - b.order).map((
170+
c,
171+
) =>
170172
html`
171173
<li class="text-sm text-neutral-300 rounded-full bg-white/10 px-2 py-0.5">
172174
${c.name.default}

0 commit comments

Comments
 (0)