Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
feat: add support for null value case
Browse files Browse the repository at this point in the history
  • Loading branch information
erzhtor committed Apr 13, 2023
1 parent a60c085 commit dbc8b4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const RepoMetadata: React.FunctionComponent<{ keyValuePairs?: Record<string, str
<div className={classNames(styles.repoMetadata, className, 'd-flex align-items-center flex-wrap')}>
{Object.entries(keyValuePairs).map(([key, value]) => (
<span className="d-flex align-items-center justify-content-center" key={`${key}:${value}`}>
<Badge variant="info" className={styles.repoMetadataKey}>
<Badge variant="info" className={classNames({ [styles.repoMetadataKey]: value })}>
{key}
</Badge>
<Badge variant="secondary" className={styles.repoMetadataValue}>
Expand Down

0 comments on commit dbc8b4b

Please sign in to comment.