Skip to content

Commit

Permalink
fix empty sections in env explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat committed Dec 20, 2024
1 parent 05bead9 commit f8b04f9
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,17 @@ export const EnvironmentExplorerUI = (props: environmentExplorerUIProps) => {
showPin={true}
title={profile.description}
description="Select the providers and chains to include them in the ENVIRONMENT select box of the Deploy & Run Transactions plugin."
>{
Object.values(sections).length && Object.values(sections).map((section) => (
>
{Object.values(sections).map((section) => (
section.providers.length > 0 && (
<RemixUIGridSection
plugin={this}
title={section.title}
hScrollable={false}
key={section.title}
>
{section.providers.map(provider => {
return <RemixUIGridCell
{section.providers.map(provider => (
<RemixUIGridCell
plugin={this}
title={provider.displayName}
logos={provider.logos}
Expand All @@ -101,10 +102,10 @@ export const EnvironmentExplorerUI = (props: environmentExplorerUIProps) => {
>
<div>{(section.descriptionFn && section.descriptionFn(provider)) || provider.description}</div>
</RemixUIGridCell>
})}
))}
</RemixUIGridSection>
))
}
)
))}
</RemixUIGridView>
</>
)
Expand Down

0 comments on commit f8b04f9

Please sign in to comment.