Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmanbear authored Aug 30, 2024
1 parent ee37684 commit 28a7e5f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pages/Generator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ function MultiSelectionSection(props) {
return (
<div class="resource box">
<h2>{props.title}</h2>
{props.options.length === 0 && <p class="empty">{emptyText}</p>}
<ul>
{props.options &&
props.options.map((option) => (
{props.options.length === 0 ? (
<p class="empty">{emptyText}</p>
) : (
<ul>
{props.options.map((option) => (
<li key={option.identifier}>
<Selection
label={option.name}
Expand All @@ -230,7 +231,8 @@ function MultiSelectionSection(props) {
/>
</li>
))}
</ul>
</ul>
)}
</div>
);
}
Expand Down

0 comments on commit 28a7e5f

Please sign in to comment.