fix(ui): sort headers alphabetically in diagram detail panel
This commit is contained in:
@@ -18,7 +18,7 @@ function parseHeaders(json: string | undefined): Record<string, string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function HeaderTable({ headers }: { headers: Record<string, string> }) {
|
function HeaderTable({ headers }: { headers: Record<string, string> }) {
|
||||||
const entries = Object.entries(headers);
|
const entries = Object.entries(headers).sort(([a], [b]) => a.localeCompare(b));
|
||||||
if (entries.length === 0) {
|
if (entries.length === 0) {
|
||||||
return <div className={styles.emptyState}>No headers</div>;
|
return <div className={styles.emptyState}>No headers</div>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user